From f9055016ffebd04d4eaf27a16010dca9d8d8c0bd Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 26 Sep 2013 12:21:52 +1000 Subject: [PATCH] Completes: U4-2868 Remove ActionSave, fixes unit tests --- ...cyPropertyEditorIdToAliasConverterTests.cs | 2 +- src/umbraco.cms/Actions/ActionSave.cs | 89 ------------------- src/umbraco.cms/umbraco.cms.csproj | 1 - 3 files changed, 1 insertion(+), 91 deletions(-) delete mode 100644 src/umbraco.cms/Actions/ActionSave.cs diff --git a/src/Umbraco.Tests/PropertyEditors/LegacyPropertyEditorIdToAliasConverterTests.cs b/src/Umbraco.Tests/PropertyEditors/LegacyPropertyEditorIdToAliasConverterTests.cs index 89bbf46712..d82ce6a259 100644 --- a/src/Umbraco.Tests/PropertyEditors/LegacyPropertyEditorIdToAliasConverterTests.cs +++ b/src/Umbraco.Tests/PropertyEditors/LegacyPropertyEditorIdToAliasConverterTests.cs @@ -45,7 +45,7 @@ namespace Umbraco.Tests.PropertyEditors { LegacyPropertyEditorIdToAliasConverter.CreateMappingsForCoreEditors(); - Assert.AreEqual(34, LegacyPropertyEditorIdToAliasConverter.Count()); + Assert.AreEqual(36, LegacyPropertyEditorIdToAliasConverter.Count()); } } } \ No newline at end of file diff --git a/src/umbraco.cms/Actions/ActionSave.cs b/src/umbraco.cms/Actions/ActionSave.cs deleted file mode 100644 index e11798a313..0000000000 --- a/src/umbraco.cms/Actions/ActionSave.cs +++ /dev/null @@ -1,89 +0,0 @@ -using System; -using umbraco.interfaces; -using umbraco.BasePages; - -namespace umbraco.BusinessLogic.Actions -{ - /// - /// This action is invoked upon saving of a document, media, member - /// - public class ActionSave : IAction - { - //create singleton -#pragma warning disable 612,618 - private static readonly ActionSave m_instance = new ActionSave(); -#pragma warning restore 612,618 - - /// - /// A public constructor exists ONLY for backwards compatibility in regards to 3rd party add-ons. - /// All Umbraco assemblies should use the singleton instantiation (this.Instance) - /// When this applicatio is refactored, this constuctor should be made private. - /// - [Obsolete("Use the singleton instantiation instead of a constructor")] - public ActionSave() { } - - public static ActionSave Instance - { - get { return m_instance; } - } - - #region IAction Members - - public char Letter - { - get - { - return '0'; - } - } - - public string JsFunctionName - { - get - { - return ""; - } - } - - public string JsSource - { - get - { - return null; - } - } - - public string Alias - { - get - { - return "save"; - } - } - - public string Icon - { - get - { - return "save"; - } - } - - public bool ShowInNotifier - { - get - { - return false; - } - } - public bool CanBePermissionAssigned - { - get - { - return false; - } - } - - #endregion - } -} diff --git a/src/umbraco.cms/umbraco.cms.csproj b/src/umbraco.cms/umbraco.cms.csproj index 6262adb867..502acdff59 100644 --- a/src/umbraco.cms/umbraco.cms.csproj +++ b/src/umbraco.cms/umbraco.cms.csproj @@ -198,7 +198,6 @@ -