From 96b74f6e49d6d61de0cc0b36d220e702452b1eda Mon Sep 17 00:00:00 2001 From: Ryan Rastedt Date: Wed, 27 Nov 2013 13:10:15 -0600 Subject: [PATCH] Remove unused SkinStyle property Does not actually provide any functionality, so it's beyond obsolete. --- WinFormsUI/Docking/DockPanel.Appearance.cs | 19 -------------- WinFormsUI/Docking/Skins/Style.cs | 11 -------- WinFormsUI/Docking/Strings.Designer.cs | 29 ++++++++-------------- WinFormsUI/Docking/Strings.resx | 3 --- WinFormsUI/WinFormsUI.csproj | 1 - 5 files changed, 10 insertions(+), 53 deletions(-) delete mode 100644 WinFormsUI/Docking/Skins/Style.cs diff --git a/WinFormsUI/Docking/DockPanel.Appearance.cs b/WinFormsUI/Docking/DockPanel.Appearance.cs index f81c3bc..5bbdd70 100644 --- a/WinFormsUI/Docking/DockPanel.Appearance.cs +++ b/WinFormsUI/Docking/DockPanel.Appearance.cs @@ -1,6 +1,4 @@ using System; -using WeifenLuo.WinFormsUI.Docking.Skins; -using System.ComponentModel; namespace WeifenLuo.WinFormsUI.Docking { @@ -16,23 +14,6 @@ namespace WeifenLuo.WinFormsUI.Docking set { m_dockPanelSkin = value; } } - private Style m_dockPanelSkinStyle = Style.VisualStudio2005; - [LocalizedCategory("Category_Docking")] - [LocalizedDescription("DockPanel_DockPanelSkinStyle")] - [DefaultValue(Style.VisualStudio2005)] - [Obsolete("Please use Theme instead.")] - public Style SkinStyle - { - get { return m_dockPanelSkinStyle; } - set - { - if (m_dockPanelSkinStyle == value) - return; - - m_dockPanelSkinStyle = value; - } - } - private ThemeBase m_dockPanelTheme = new VS2005Theme(); [LocalizedCategory("Category_Docking")] [LocalizedDescription("DockPanel_DockPanelTheme")] diff --git a/WinFormsUI/Docking/Skins/Style.cs b/WinFormsUI/Docking/Skins/Style.cs deleted file mode 100644 index 9f3e463..0000000 --- a/WinFormsUI/Docking/Skins/Style.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace WeifenLuo.WinFormsUI.Docking.Skins -{ - [Obsolete] - public enum Style - { - VisualStudio2005 = 1, - VisualStudio2012Light - } -} diff --git a/WinFormsUI/Docking/Strings.Designer.cs b/WinFormsUI/Docking/Strings.Designer.cs index 03558bd..dfe9533 100644 --- a/WinFormsUI/Docking/Strings.Designer.cs +++ b/WinFormsUI/Docking/Strings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.18033 +// Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -609,15 +609,6 @@ namespace WeifenLuo.WinFormsUI.Docking { } } - /// - /// Looks up a localized string similar to The predefined style used as the base for the skin.. - /// - internal static string DockPanel_DockPanelSkinStyle { - get { - return ResourceManager.GetString("DockPanel_DockPanelSkinStyle", resourceCulture); - } - } - /// /// Looks up a localized string similar to Size of the right docking window. Value < 1 to specify the size in portion; value > 1 to specify the size in pixels.. /// @@ -735,15 +726,6 @@ namespace WeifenLuo.WinFormsUI.Docking { } } - /// - /// Looks up a localized string similar to Show close button on each tab. - /// - internal static string DockPanel_ShowCloseButtonOnEachTab_Description { - get { - return ResourceManager.GetString("DockPanel_ShowCloseButtonOnEachTab_Description", resourceCulture); - } - } - /// /// Looks up a localized string similar to Shows the hidden autohide content when hovering over the tab. When disabled, the tab must be clicked to show the content.. /// @@ -753,6 +735,15 @@ namespace WeifenLuo.WinFormsUI.Docking { } } + /// + /// Looks up a localized string similar to Show close button on each tab. + /// + internal static string DockPanel_ShowCloseButtonOnEachTab_Description { + get { + return ResourceManager.GetString("DockPanel_ShowCloseButtonOnEachTab_Description", resourceCulture); + } + } + /// /// Looks up a localized string similar to Determines if the document icon will be displayed in the tab strip.. /// diff --git a/WinFormsUI/Docking/Strings.resx b/WinFormsUI/Docking/Strings.resx index 69e1db1..25eab38 100644 --- a/WinFormsUI/Docking/Strings.resx +++ b/WinFormsUI/Docking/Strings.resx @@ -354,9 +354,6 @@ The visual skin to use when displaying the docked windows. - - The predefined style used as the base for the skin. - Determines where the tab strip for Document style content is drawn. diff --git a/WinFormsUI/WinFormsUI.csproj b/WinFormsUI/WinFormsUI.csproj index ad1b53a..d495dbe 100644 --- a/WinFormsUI/WinFormsUI.csproj +++ b/WinFormsUI/WinFormsUI.csproj @@ -75,7 +75,6 @@ True ResourcesVS2003.resx - True True