diff --git a/src/Umbraco.Core/CoreBootManager.cs b/src/Umbraco.Core/CoreBootManager.cs index 1dee621091..f440626df1 100644 --- a/src/Umbraco.Core/CoreBootManager.cs +++ b/src/Umbraco.Core/CoreBootManager.cs @@ -127,7 +127,7 @@ namespace Umbraco.Core // completed at the end of the boot process to allow garbage collection _appStartupEvtContainer = Container.CreateChildContainer(); _appStartupEvtContainer.BeginScope(); - _appStartupEvtContainer.RegisterCollection(PluginManager.ResolveApplicationStartupHandlers()); + _appStartupEvtContainer.RegisterCollection(PluginManager.ResolveApplicationStartupHandlers()); //build up standard IoC services ConfigureApplicationServices(Container); diff --git a/src/Umbraco.Core/DatabaseContext.cs b/src/Umbraco.Core/DatabaseContext.cs index 77ef7c626d..1f00fb0df9 100644 --- a/src/Umbraco.Core/DatabaseContext.cs +++ b/src/Umbraco.Core/DatabaseContext.cs @@ -30,7 +30,6 @@ namespace Umbraco.Core private readonly ILogger _logger; private readonly SqlSyntaxProviders _syntaxProviders; private bool _configured; - private readonly object _locker = new object(); private string _connectionString; private string _providerName; private DatabaseSchemaResult _result; diff --git a/src/Umbraco.Core/DependencyInjection/LightInjectExtensions.cs b/src/Umbraco.Core/DependencyInjection/LightInjectExtensions.cs index d66a446ae2..f80d5fdaf4 100644 --- a/src/Umbraco.Core/DependencyInjection/LightInjectExtensions.cs +++ b/src/Umbraco.Core/DependencyInjection/LightInjectExtensions.cs @@ -9,11 +9,10 @@ namespace Umbraco.Core.DependencyInjection /// /// In order for LightInject to deal with enumerables of the same type, each one needs to be named individually /// - /// /// /// /// - public static void RegisterCollection(this IServiceContainer container, IEnumerable implementationTypes) + public static void RegisterCollection(this IServiceContainer container, IEnumerable implementationTypes) where TLifetime : ILifetime { var i = 0; @@ -39,10 +38,9 @@ namespace Umbraco.Core.DependencyInjection /// /// In order for LightInject to deal with enumerables of the same type, each one needs to be named individually /// - /// /// /// - public static void RegisterCollection(this IServiceContainer container, IEnumerable implementationTypes) + public static void RegisterCollection(this IServiceContainer container, IEnumerable implementationTypes) { var i = 0; foreach (var type in implementationTypes) diff --git a/src/Umbraco.Core/Media/Exif/ExifProperty.cs b/src/Umbraco.Core/Media/Exif/ExifProperty.cs index 16ae5bc08e..7ba32d4966 100644 --- a/src/Umbraco.Core/Media/Exif/ExifProperty.cs +++ b/src/Umbraco.Core/Media/Exif/ExifProperty.cs @@ -27,7 +27,7 @@ namespace Umbraco.Core.Media.Exif { get { - if (mName == null || mName.Length == 0) + if (string.IsNullOrEmpty(mName)) return ExifTagFactory.GetTagName(mTag); else return mName; diff --git a/src/Umbraco.Core/Models/Membership/UmbracoMembershipUser.cs b/src/Umbraco.Core/Models/Membership/UmbracoMembershipUser.cs deleted file mode 100644 index ada2a7102d..0000000000 --- a/src/Umbraco.Core/Models/Membership/UmbracoMembershipUser.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Web.Security; - -namespace Umbraco.Core.Models.Membership -{ - internal class UmbracoMembershipUser : MembershipUser where T : IMembershipUser - { - private T _user; - - #region Constructors - /// - /// Initializes a new instance of the class. - /// - public UmbracoMembershipUser(T user) - { - _user = user; - } - - /// - /// Initializes a new instance of the class. - /// - /// Name of the provider. - /// The name. - /// The provider user key. - /// The email. - /// The password question. - /// The comment. - /// if set to true [is approved]. - /// if set to true [is locked out]. - /// The creation date. - /// The last login date. - /// The last activity date. - /// The last password changed date. - /// The last lockout date. - /// The full name. - /// The language. - /// Type of the user. - /// - public UmbracoMembershipUser(string providerName, string name, object providerUserKey, string email, - string passwordQuestion, string comment, bool isApproved, bool isLockedOut, - DateTime creationDate, DateTime lastLoginDate, DateTime lastActivityDate, DateTime lastPasswordChangedDate, - DateTime lastLockoutDate, string fullName, string language, IUserType userType, T user) - : base( providerName, name, providerUserKey, email, passwordQuestion, comment, isApproved, isLockedOut, - creationDate, lastLoginDate, lastActivityDate, lastPasswordChangedDate, lastLockoutDate) - { - _user = user; - } - - #endregion - } -} \ No newline at end of file diff --git a/src/Umbraco.Core/Models/Script.cs b/src/Umbraco.Core/Models/Script.cs index 325885d9ba..0c6eed39dd 100644 --- a/src/Umbraco.Core/Models/Script.cs +++ b/src/Umbraco.Core/Models/Script.cs @@ -18,12 +18,7 @@ namespace Umbraco.Core.Models internal Script(string path, Func getFileContent) : base(path, getFileContent) - { } - - [Obsolete("This is no longer used and will be removed from the codebase in future versions")] - public Script(string path, IContentSection contentConfig) - : base(path) - { } + { } /// /// Indicates whether the current entity has an identity, which in this case is a path/name. diff --git a/src/Umbraco.Core/Models/Template.cs b/src/Umbraco.Core/Models/Template.cs index 4aca88f286..b5730ae11a 100644 --- a/src/Umbraco.Core/Models/Template.cs +++ b/src/Umbraco.Core/Models/Template.cs @@ -43,12 +43,6 @@ namespace Umbraco.Core.Models _masterTemplateId = new Lazy(() => -1); } - [Obsolete("This constructor should not be used, file path is determined by alias, setting the path here will have no affect")] - public Template(string path, string name, string alias) - : this(name, alias) - { - } - [DataMember] public Lazy MasterTemplateId { diff --git a/src/Umbraco.Core/ObjectResolution/ResolverBase.cs b/src/Umbraco.Core/ObjectResolution/ResolverBase.cs index b0c4d21998..b5e1e14df2 100644 --- a/src/Umbraco.Core/ObjectResolution/ResolverBase.cs +++ b/src/Umbraco.Core/ObjectResolution/ResolverBase.cs @@ -49,12 +49,6 @@ namespace Umbraco.Core.ObjectResolution } - internal ResolverBase(IServiceContainer container) - : base(() => Reset()) - { - - } - /// /// Gets or sets the resolver singleton instance. /// diff --git a/src/Umbraco.Core/Packaging/PackageInstallation.cs b/src/Umbraco.Core/Packaging/PackageInstallation.cs index 3540c166c2..d2100f9738 100644 --- a/src/Umbraco.Core/Packaging/PackageInstallation.cs +++ b/src/Umbraco.Core/Packaging/PackageInstallation.cs @@ -97,7 +97,7 @@ namespace Umbraco.Core.Packaging try { XElement rootElement = GetConfigXmlElement(packageFilePath); - return GetPreInstallWarnings(packageFilePath, rootElement); + return GetPreInstallWarnings(rootElement); } catch (Exception e) { @@ -169,7 +169,7 @@ namespace Umbraco.Core.Packaging var documentTypesInstalled = EmptyEnumerableIfNull(documentTypes) ?? InstallDocumentTypes(documentTypes, userId); installationSummary.ContentTypesInstalled =documentTypesInstalled; - var stylesheetsInstalled = EmptyEnumerableIfNull(styleSheets) ?? InstallStylesheets(styleSheets, userId); + var stylesheetsInstalled = EmptyEnumerableIfNull(styleSheets) ?? InstallStylesheets(styleSheets); installationSummary.StylesheetsInstalled = stylesheetsInstalled; var documentsInstalled = documents != null ? InstallDocuments(documents, userId) @@ -328,7 +328,7 @@ namespace Umbraco.Core.Packaging .ToArray(); } - private IEnumerable InstallStylesheets(XElement styleSheetsElement, int userId = 0) + private IEnumerable InstallStylesheets(XElement styleSheetsElement) { if (string.Equals(Constants.Packaging.StylesheetsNodeName, styleSheetsElement.Name.LocalName) == false) { @@ -425,7 +425,7 @@ namespace Umbraco.Core.Packaging return _packagingService.ImportDataTypeDefinitions(dataTypeElements, userId); } - private PreInstallWarnings GetPreInstallWarnings(string packagePath, XElement rootElement) + private PreInstallWarnings GetPreInstallWarnings(XElement rootElement) { XElement files = rootElement.Element(Constants.Packaging.FilesNodeName); XElement styleSheets = rootElement.Element(Constants.Packaging.StylesheetsNodeName); diff --git a/src/Umbraco.Core/Persistence/SqlSyntax/DbTypes.cs b/src/Umbraco.Core/Persistence/SqlSyntax/DbTypes.cs index 507db230cc..e744fb7fdf 100644 --- a/src/Umbraco.Core/Persistence/SqlSyntax/DbTypes.cs +++ b/src/Umbraco.Core/Persistence/SqlSyntax/DbTypes.cs @@ -4,8 +4,7 @@ using System.Data; namespace Umbraco.Core.Persistence.SqlSyntax { - public class DbTypes - where TSyntax : ISqlSyntaxProvider + public class DbTypes { public DbType DbType; public string TextDefinition; diff --git a/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs b/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs index c2b81aa753..eb8a56faca 100644 --- a/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs +++ b/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs @@ -72,7 +72,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax protected IList> ClauseOrder { get; set; } - protected DbTypes DbTypeMap = new DbTypes(); + protected DbTypes DbTypeMap = new DbTypes(); protected void InitColumnTypeMap() { DbTypeMap.Set(DbType.String, StringColumnDefinition); diff --git a/src/Umbraco.Core/Services/PackagingService.cs b/src/Umbraco.Core/Services/PackagingService.cs index 2d7445ee5e..8244e90d52 100644 --- a/src/Umbraco.Core/Services/PackagingService.cs +++ b/src/Umbraco.Core/Services/PackagingService.cs @@ -1379,7 +1379,7 @@ namespace Umbraco.Core.Services var path = isMasterPage ? MasterpagePath(alias) : ViewPath(alias); var existingTemplate = _fileService.GetTemplate(alias) as Template; - var template = existingTemplate ?? new Template(path, templateName, alias); + var template = existingTemplate ?? new Template(templateName, alias); template.Content = design; if (masterElement != null && string.IsNullOrEmpty(masterElement.Value) == false) { diff --git a/src/Umbraco.Core/Umbraco.Core.csproj b/src/Umbraco.Core/Umbraco.Core.csproj index 03411a49e2..7f51f4324a 100644 --- a/src/Umbraco.Core/Umbraco.Core.csproj +++ b/src/Umbraco.Core/Umbraco.Core.csproj @@ -683,7 +683,6 @@ - diff --git a/src/Umbraco.Tests/Models/ContentTests.cs b/src/Umbraco.Tests/Models/ContentTests.cs index 6bc61649a5..f2120fb235 100644 --- a/src/Umbraco.Tests/Models/ContentTests.cs +++ b/src/Umbraco.Tests/Models/ContentTests.cs @@ -210,7 +210,7 @@ namespace Umbraco.Tests.Models content.ReleaseDate = DateTime.Now; content.ChangePublishedState(PublishedState.Published); content.SortOrder = 5; - content.Template = new Template("-1,2,3,4", "Test Template", "testTemplate") + content.Template = new Template((string) "Test Template", (string) "testTemplate") { Id = 88 }; @@ -265,7 +265,7 @@ namespace Umbraco.Tests.Models content.ReleaseDate = DateTime.Now; content.ChangePublishedState(PublishedState.Published); content.SortOrder = 5; - content.Template = new Template("-1,2,3,4", "Test Template", "testTemplate") + content.Template = new Template((string) "Test Template", (string) "testTemplate") { Id = 88 }; @@ -368,7 +368,7 @@ namespace Umbraco.Tests.Models content.ReleaseDate = DateTime.Now; content.ChangePublishedState(PublishedState.Published); content.SortOrder = 5; - content.Template = new Template("-1,2,3,4", "Test Template", "testTemplate") + content.Template = new Template((string) "Test Template", (string) "testTemplate") { Id = 88 }; diff --git a/src/Umbraco.Tests/Models/ContentTypeTests.cs b/src/Umbraco.Tests/Models/ContentTypeTests.cs index 0589d7d173..70208c3424 100644 --- a/src/Umbraco.Tests/Models/ContentTypeTests.cs +++ b/src/Umbraco.Tests/Models/ContentTypeTests.cs @@ -47,12 +47,12 @@ namespace Umbraco.Tests.Models contentType.PropertyTypeCollection.Add( new PropertyType("test", DataTypeDatabaseType.Ntext, "title2") { Name = "Title2", Description = "", Mandatory = false, SortOrder = 1, DataTypeDefinitionId = -88 }); - contentType.AllowedTemplates = new[] { new Template("-1,2", "Name", "name") { Id = 200 }, new Template("-1,3", "Name2", "name2") { Id = 201 } }; + contentType.AllowedTemplates = new[] { new Template("Name", "name") { Id = 200 }, new Template("Name2", "name2") { Id = 201 } }; contentType.AllowedContentTypes = new[] { new ContentTypeSort(new Lazy(() => 888), 8, "sub"), new ContentTypeSort(new Lazy(() => 889), 9, "sub2") }; contentType.Id = 10; contentType.CreateDate = DateTime.Now; contentType.CreatorId = 22; - contentType.SetDefaultTemplate(new Template("-1,2,3,4", "Test Template", "testTemplate") + contentType.SetDefaultTemplate(new Template((string) "Test Template", (string) "testTemplate") { Id = 88 }); @@ -108,12 +108,12 @@ namespace Umbraco.Tests.Models { group.Id = ++i; } - contentType.AllowedTemplates = new[] { new Template("-1,2", "Name", "name") { Id = 200 }, new Template("-1,3", "Name2", "name2") { Id = 201 } }; + contentType.AllowedTemplates = new[] { new Template((string) "Name", (string) "name") { Id = 200 }, new Template((string) "Name2", (string) "name2") { Id = 201 } }; contentType.AllowedContentTypes = new[] { new ContentTypeSort(new Lazy(() => 888), 8, "sub"), new ContentTypeSort(new Lazy(() => 889), 9, "sub2") }; contentType.Id = 10; contentType.CreateDate = DateTime.Now; contentType.CreatorId = 22; - contentType.SetDefaultTemplate(new Template("-1,2,3,4", "Test Template", "testTemplate") + contentType.SetDefaultTemplate(new Template((string) "Test Template", (string) "testTemplate") { Id = 88 }); @@ -159,12 +159,12 @@ namespace Umbraco.Tests.Models { group.Id = ++i; } - contentType.AllowedTemplates = new[] { new Template("-1,2", "Name", "name") { Id = 200 }, new Template("-1,3", "Name2", "name2") { Id = 201 } }; + contentType.AllowedTemplates = new[] { new Template((string) "Name", (string) "name") { Id = 200 }, new Template((string) "Name2", (string) "name2") { Id = 201 } }; contentType.AllowedContentTypes = new[] {new ContentTypeSort(new Lazy(() => 888), 8, "sub"), new ContentTypeSort(new Lazy(() => 889), 9, "sub2")}; contentType.Id = 10; contentType.CreateDate = DateTime.Now; contentType.CreatorId = 22; - contentType.SetDefaultTemplate(new Template("-1,2,3,4", "Test Template", "testTemplate") + contentType.SetDefaultTemplate(new Template((string) "Test Template", (string) "testTemplate") { Id = 88 }); @@ -260,12 +260,12 @@ namespace Umbraco.Tests.Models { propertyType.Id = ++i; } - contentType.AllowedTemplates = new[] { new Template("-1,2", "Name", "name") { Id = 200 }, new Template("-1,3", "Name2", "name2") { Id = 201 } }; + contentType.AllowedTemplates = new[] { new Template((string) "Name", (string) "name") { Id = 200 }, new Template((string) "Name2", (string) "name2") { Id = 201 } }; contentType.AllowedContentTypes = new[] { new ContentTypeSort(new Lazy(() => 888), 8, "sub"), new ContentTypeSort(new Lazy(() => 889), 9, "sub2") }; contentType.Id = 10; contentType.CreateDate = DateTime.Now; contentType.CreatorId = 22; - contentType.SetDefaultTemplate(new Template("-1,2,3,4", "Test Template", "testTemplate") + contentType.SetDefaultTemplate(new Template((string) "Test Template", (string) "testTemplate") { Id = 88 }); diff --git a/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs index 9729533af9..281434c544 100644 --- a/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs +++ b/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs @@ -81,9 +81,9 @@ namespace Umbraco.Tests.Persistence.Repositories { var templates = new[] { - new Template("test1.cshtml", "test1", "test1"), - new Template("test2.cshtml", "test2", "test2"), - new Template("test3.cshtml", "test3", "test3") + new Template("test1", "test1"), + new Template("test2", "test2"), + new Template("test3", "test3") }; foreach (var template in templates) { diff --git a/src/Umbraco.Tests/Plugins/TypeHelperTests.cs b/src/Umbraco.Tests/Plugins/TypeHelperTests.cs index 9282d7cd48..be7ed38915 100644 --- a/src/Umbraco.Tests/Plugins/TypeHelperTests.cs +++ b/src/Umbraco.Tests/Plugins/TypeHelperTests.cs @@ -25,8 +25,6 @@ namespace Umbraco.Tests.Plugins public class TypeHelperTests { - - class Base { } diff --git a/src/Umbraco.Tests/PublishedContent/DynamicDocumentTestsBase.cs b/src/Umbraco.Tests/PublishedContent/DynamicDocumentTestsBase.cs index a5f2be45ab..55489b6074 100644 --- a/src/Umbraco.Tests/PublishedContent/DynamicDocumentTestsBase.cs +++ b/src/Umbraco.Tests/PublishedContent/DynamicDocumentTestsBase.cs @@ -15,7 +15,7 @@ using Umbraco.Tests.TestHelpers; namespace Umbraco.Tests.PublishedContent { [TestFixture] - public abstract class DynamicDocumentTestsBase : PublishedContentTestBase + public abstract class DynamicDocumentTestsBase : PublishedContentTestBase { private IUmbracoSettingsSection _umbracoSettings; diff --git a/src/Umbraco.Tests/PublishedContent/DynamicPublishedContentTests.cs b/src/Umbraco.Tests/PublishedContent/DynamicPublishedContentTests.cs index 106996a93e..143cf95321 100644 --- a/src/Umbraco.Tests/PublishedContent/DynamicPublishedContentTests.cs +++ b/src/Umbraco.Tests/PublishedContent/DynamicPublishedContentTests.cs @@ -13,7 +13,7 @@ using File = Umbraco.Core.Models.File; namespace Umbraco.Tests.PublishedContent { [TestFixture] - public class DynamicPublishedContentTests : DynamicDocumentTestsBase + public class DynamicPublishedContentTests : DynamicDocumentTestsBase { internal DynamicPublishedContent GetNode(int id) { diff --git a/src/Umbraco.Tests/Resolvers/LazyManyObjectResolverTests.cs b/src/Umbraco.Tests/Resolvers/LazyManyObjectResolverTests.cs index 33bb1ab34c..9fcfdfe382 100644 --- a/src/Umbraco.Tests/Resolvers/LazyManyObjectResolverTests.cs +++ b/src/Umbraco.Tests/Resolvers/LazyManyObjectResolverTests.cs @@ -171,11 +171,7 @@ namespace Umbraco.Tests.Resolvers private sealed class LazyResolver : LazyManyObjectsResolverBase { - public LazyResolver(IServiceProvider serviceProvider, ILogger logger) - : base(serviceProvider, logger, ObjectLifetimeScope.Transient) - { } - - public LazyResolver(IServiceProvider serviceProvider, ILogger logger, IEnumerable> values) + public LazyResolver(IServiceProvider serviceProvider, ILogger logger, IEnumerable> values) :base (serviceProvider, logger, values, ObjectLifetimeScope.Transient) { } diff --git a/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs index e75a8b8e80..6a4cbd1860 100644 --- a/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs +++ b/src/Umbraco.Tests/Routing/ContentFinderByNiceUrlAndTemplateTests.cs @@ -14,7 +14,7 @@ namespace Umbraco.Tests.Routing { Template CreateTemplate(string alias) { - var template = new Template(alias, alias, alias); + var template = new Template(alias, alias); template.Content = ""; // else saving throws with a dirty internal error ApplicationContext.Services.FileService.SaveTemplate(template); return template; diff --git a/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs b/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs index f7dc8c160c..8faa22ae25 100644 --- a/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs +++ b/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs @@ -62,7 +62,7 @@ namespace Umbraco.Tests.Routing { var path = "template"; var name = "Template"; - var template = new Template(path, name, alias); + var template = new Template(name, alias); template.Content = ""; // else saving throws with a dirty internal error ApplicationContext.Services.FileService.SaveTemplate(template); return template; diff --git a/src/Umbraco.Tests/TreesAndSections/BaseContentTreeTests.cs b/src/Umbraco.Tests/TreesAndSections/BaseContentTreeTests.cs deleted file mode 100644 index 57a974fc95..0000000000 --- a/src/Umbraco.Tests/TreesAndSections/BaseContentTreeTests.cs +++ /dev/null @@ -1,123 +0,0 @@ -using NUnit.Framework; -using umbraco.cms.presentation.Trees; - -namespace Umbraco.Tests.TreesAndSections -{ - [TestFixture] - public class BaseContentTreeTests - { - - [TearDown] - public void TestTearDown() - { - BaseTree.AfterTreeRender -= EventHandler; - BaseTree.BeforeTreeRender -= EventHandler; - } - - [Test] - public void Run_Optimized() - { - var tree1 = new MyOptimizedContentTree1("content"); - var tree2 = new MyOptimizedContentTree2("content"); - - Assert.IsTrue(tree1.UseOptimizedRendering); - Assert.IsTrue(tree2.UseOptimizedRendering); - } - - [Test] - public void Not_Optimized_Events_AfterRender() - { - var tree = new MyOptimizedContentTree1("content"); - - BaseTree.AfterTreeRender += EventHandler; - - Assert.IsFalse(tree.UseOptimizedRendering); - } - - [Test] - public void Not_Optimized_Events_BeforeRender() - { - var tree = new MyOptimizedContentTree1("content"); - - BaseTree.BeforeTreeRender += EventHandler; - - Assert.IsFalse(tree.UseOptimizedRendering); - } - - [Test] - public void Not_Optimized_Overriden_Method() - { - var tree = new MyNotOptimizedContentTree("content"); - - Assert.IsFalse(tree.UseOptimizedRendering); - } - - private void EventHandler(object sender, TreeEventArgs treeEventArgs) - { - - } - - //optimized because we are not overriding OnRenderNode - public class MyOptimizedContentTree1 : BaseContentTree - { - public MyOptimizedContentTree1(string application) - : base(application) - { - } - - protected override void CreateRootNode(ref XmlTreeNode rootNode) - { - - } - } - - public class MyOptimizedContentTree2 : BaseContentTree - { - public MyOptimizedContentTree2(string application) - : base(application) - { - } - - protected override bool LoadMinimalDocument - { - get { return true; } - } - - protected override void CreateRootNode(ref XmlTreeNode rootNode) - { - - } - - //even if we override it will still be optimized because of the LoadMinimalDocument flag - protected override void OnRenderNode(ref XmlTreeNode xNode, umbraco.cms.businesslogic.web.Document doc) - { - base.OnRenderNode(ref xNode, doc); - } - } - - public class MyNotOptimizedContentTree : BaseContentTree - { - public MyNotOptimizedContentTree(string application) - : base(application) - { - } - - protected override void CreateRootNode(ref XmlTreeNode rootNode) - { - - } - - protected override bool LoadMinimalDocument - { - get { return false; } - } - - protected override void OnRenderNode(ref XmlTreeNode xNode, umbraco.cms.businesslogic.web.Document doc) - { - base.OnRenderNode(ref xNode, doc); - } - } - - - } -} diff --git a/src/Umbraco.Tests/Umbraco.Tests.csproj b/src/Umbraco.Tests/Umbraco.Tests.csproj index 3b5f70a2b3..361d8b76fd 100644 --- a/src/Umbraco.Tests/Umbraco.Tests.csproj +++ b/src/Umbraco.Tests/Umbraco.Tests.csproj @@ -473,7 +473,6 @@ - diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index 3b1763cf03..99dd58c5fe 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -1286,7 +1286,6 @@ - diff --git a/src/Umbraco.Web.UI/umbraco/developer/Packages/installedPackage.aspx b/src/Umbraco.Web.UI/umbraco/developer/Packages/installedPackage.aspx index 44b2991ada..8ae87860d7 100644 --- a/src/Umbraco.Web.UI/umbraco/developer/Packages/installedPackage.aspx +++ b/src/Umbraco.Web.UI/umbraco/developer/Packages/installedPackage.aspx @@ -2,7 +2,7 @@ <%@ Register TagPrefix="cc2" Namespace="umbraco.uicontrols" Assembly="controls" %>