diff --git a/PlexRequests.UI/Bootstrapper.cs b/PlexRequests.UI/Bootstrapper.cs index 249198332..213b6c1eb 100644 --- a/PlexRequests.UI/Bootstrapper.cs +++ b/PlexRequests.UI/Bootstrapper.cs @@ -166,7 +166,6 @@ namespace PlexRequests.UI private void ConfigureContainer(IKernel container) { - var loc = ServiceLocator.Instance; loc.SetContainer(container); } diff --git a/PlexRequests.UI/Startup.cs b/PlexRequests.UI/Startup.cs index 2d0bcb221..184f2bba6 100644 --- a/PlexRequests.UI/Startup.cs +++ b/PlexRequests.UI/Startup.cs @@ -26,13 +26,7 @@ #endregion using System; -using MediatR; - -using Nancy.TinyIoc; - using Ninject; -using Ninject.Extensions.Conventions; -using Ninject.Modules; using Ninject.Planning.Bindings.Resolvers; using NLog; @@ -59,9 +53,7 @@ namespace PlexRequests.UI kernel.Components.Add(); - - - app.UseNancy(options => options.Bootstrapper = new Bootstrapper(kernel)); + app.UseNancy(options => options.Bootstrapper = new Bootstrapper(kernel)); var scheduler = new Scheduler(); scheduler.StartScheduler(); }