diff --git a/src/Umbraco.Core/UmbracoApplicationBase.cs b/src/Umbraco.Core/UmbracoApplicationBase.cs index 18884eb459..dc39fb295e 100644 --- a/src/Umbraco.Core/UmbracoApplicationBase.cs +++ b/src/Umbraco.Core/UmbracoApplicationBase.cs @@ -34,8 +34,6 @@ namespace Umbraco.Core /// protected virtual IContainer GetContainer() { - // note: the actual, web UmbracoApplication is overriding this - // with a web-supporting container return ContainerFactory.Create(); } @@ -70,7 +68,6 @@ namespace Umbraco.Core // create the container for the application, and configure. // the boot manager is responsible for registrations var container = GetContainer(); - container.RegisterInstance(container); Current.Container = container; // register the essential stuff, @@ -107,6 +104,8 @@ namespace Umbraco.Core protected virtual void ConfigureAssemblyResolve(ILogger logger) { + // TODO - do we still need this? + // When an assembly can't be resolved. In here we can do magic with the assembly name and try loading another. // This is used for loading a signed assembly of AutoMapper (v. 3.1+) without having to recompile old code. AppDomain.CurrentDomain.AssemblyResolve += (sender, args) => diff --git a/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs b/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs index d9769cfb35..4314af38b5 100644 --- a/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs +++ b/src/Umbraco.Tests/TestHelpers/BaseUsingSqlCeSyntax.cs @@ -34,8 +34,6 @@ namespace Umbraco.Tests.TestHelpers var container = Current.Container = ContainerFactory.Create(); - PreSetUp(); - container.RegisterSingleton(factory => Mock.Of()); container.RegisterSingleton(factory => Mock.Of()); @@ -57,9 +55,6 @@ namespace Umbraco.Tests.TestHelpers SetUp(); } - public virtual void PreSetUp() - {} - public virtual void SetUp() {} diff --git a/src/Umbraco.Web/UmbracoContext.cs b/src/Umbraco.Web/UmbracoContext.cs index 831e3c5cdc..b20316fc4a 100644 --- a/src/Umbraco.Web/UmbracoContext.cs +++ b/src/Umbraco.Web/UmbracoContext.cs @@ -5,7 +5,6 @@ using Umbraco.Core; using Umbraco.Core.Configuration; using Umbraco.Core.Configuration.UmbracoSettings; using Umbraco.Core.Models.PublishedContent; -using Umbraco.Core.Services; using Umbraco.Web.PublishedCache; using Umbraco.Web.Routing; using Umbraco.Web.Runtime;