From 96e1227bde79562dda5ac5eec1a3833e3cca59fc Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Sun, 31 Aug 2014 10:18:17 +0200 Subject: [PATCH] cleanup --- .../impl/source/codeStyle/CodeStyleSchemesImpl.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleSchemesImpl.java b/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleSchemesImpl.java index 40ee4adf70f2..862084a5615d 100644 --- a/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleSchemesImpl.java +++ b/platform/lang-impl/src/com/intellij/psi/impl/source/codeStyle/CodeStyleSchemesImpl.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package com.intellij.psi.impl.source.codeStyle; import com.intellij.openapi.components.ExportableComponent; @@ -44,10 +43,10 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E public String CURRENT_SCHEME_NAME = DEFAULT_SCHEME_NAME; private boolean myIsInitialized = false; - @NonNls static final String CODESTYLES_DIRECTORY = "codestyles"; + @NonNls static final String CODE_STYLES_DIRECTORY = "codestyles"; private final SchemesManager mySchemesManager; - @NonNls private static final String FILE_SPEC = "$ROOT_CONFIG$/" + CODESTYLES_DIRECTORY; + @NonNls private static final String FILE_SPEC = "$ROOT_CONFIG$/" + CODE_STYLES_DIRECTORY; public CodeStyleSchemesImpl(SchemesManagerFactory schemesManagerFactory) { SchemeProcessor processor = new BaseSchemeProcessor() { @@ -97,6 +96,7 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E CURRENT_SCHEME_NAME = schemeName; } + @SuppressWarnings("ForLoopThatDoesntUseLoopVariable") @Override public CodeStyleScheme createNewScheme(String preferredName, CodeStyleScheme parentScheme) { String name; @@ -154,10 +154,6 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E mySchemesManager.addNewScheme(scheme, true); } - protected void removeScheme(CodeStyleScheme scheme) { - mySchemesManager.removeScheme(scheme); - } - protected void init() { if (myIsInitialized) return; myIsInitialized = true; @@ -173,6 +169,4 @@ public abstract class CodeStyleSchemesImpl extends CodeStyleSchemes implements E public SchemesManager getSchemesManager() { return mySchemesManager; } - - }