From afe894c0cc135fcb79b8aa5ad019f0643dea8a98 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Wed, 3 Jan 2018 15:40:53 -0600 Subject: [PATCH] (GH-10) Remove outdated files --- .../DataServices/Packages.svc | 3 -- .../DataServices/Routes.cs | 38 ------------------- .../SimpleChocolateyServer.csproj | 2 - 3 files changed, 43 deletions(-) delete mode 100644 src/SimpleChocolateyServer/DataServices/Packages.svc delete mode 100644 src/SimpleChocolateyServer/DataServices/Routes.cs diff --git a/src/SimpleChocolateyServer/DataServices/Packages.svc b/src/SimpleChocolateyServer/DataServices/Packages.svc deleted file mode 100644 index 6914b05..0000000 --- a/src/SimpleChocolateyServer/DataServices/Packages.svc +++ /dev/null @@ -1,3 +0,0 @@ - - -<%@ ServiceHost Language="C#" Factory="System.Data.Services.DataServiceHostFactory, System.Data.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Service="NuGet.Server.DataServices.Packages" %> diff --git a/src/SimpleChocolateyServer/DataServices/Routes.cs b/src/SimpleChocolateyServer/DataServices/Routes.cs deleted file mode 100644 index 577a5a8..0000000 --- a/src/SimpleChocolateyServer/DataServices/Routes.cs +++ /dev/null @@ -1,38 +0,0 @@ -using SimpleChocolateyServer; -using WebActivatorEx; - -[assembly: PreApplicationStartMethod(typeof (NuGetRoutes), "Start")] - -namespace SimpleChocolateyServer -{ - using System.Data.Services; - using System.ServiceModel.Activation; - using System.Web.Routing; - using Ninject; - using NuGet.Server; - using NuGet.Server.DataServices; - using NuGet.Server.Infrastructure; - - public static class NuGetRoutes - { - public static void Start() - { - MapRoutes(RouteTable.Routes); - } - - private static void MapRoutes(RouteCollection routes) - { - // The default route is http://{root}/chocolatey/Packages - var factory = new DataServiceHostFactory(); - var serviceRoute = new ServiceRoute("chocolatey", factory, typeof (Packages)); - serviceRoute.Defaults = new RouteValueDictionary {{"serviceType", "odata"}}; - serviceRoute.Constraints = new RouteValueDictionary {{"serviceType", "odata"}}; - routes.Add("chocolatey", serviceRoute); - } - - private static PackageService CreatePackageService() - { - return NinjectBootstrapper.Kernel.Get(); - } - } -} \ No newline at end of file diff --git a/src/SimpleChocolateyServer/SimpleChocolateyServer.csproj b/src/SimpleChocolateyServer/SimpleChocolateyServer.csproj index a2bcb85..494ef05 100644 --- a/src/SimpleChocolateyServer/SimpleChocolateyServer.csproj +++ b/src/SimpleChocolateyServer/SimpleChocolateyServer.csproj @@ -132,7 +132,6 @@ - @@ -142,7 +141,6 @@ Properties\SolutionVersion.cs -