Commit a570ab17 authored by Bas Leijdekkers's avatar Bas Leijdekkers
Browse files

SSR: remove unused code from replace options

parent e19e11f7
No related merge requests found
Showing with 1 addition and 16 deletions
+1 -16
package com.intellij.structuralsearch.plugin.replace;
import com.intellij.openapi.util.JDOMExternalizable;
import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.UserDataHolder;
import com.intellij.structuralsearch.MatchOptions;
import com.intellij.structuralsearch.ReplacementVariableDefinition;
import gnu.trove.THashMap;
import org.jdom.Attribute;
import org.jdom.DataConversionException;
import org.jdom.Element;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import java.util.*;
......@@ -19,7 +15,7 @@ import java.util.*;
* Date: Mar 5, 2004
* Time: 7:51:38 PM
*/
public class ReplaceOptions implements JDOMExternalizable, Cloneable, UserDataHolder {
public class ReplaceOptions implements JDOMExternalizable, Cloneable {
private Map<String, ReplacementVariableDefinition> variableDefs;
private String replacement = "";
private boolean toShortenFQN;
......@@ -30,7 +26,6 @@ public class ReplaceOptions implements JDOMExternalizable, Cloneable, UserDataHo
@NonNls private static final String REPLACEMENT_ATTR_NAME = "replacement";
@NonNls private static final String SHORTEN_FQN_ATTR_NAME = "shortenFQN";
private THashMap myUserMap = null;
@NonNls private static final String VARIABLE_DEFINITION_TAG_NAME = "variableDefinition";
public String getReplacement() {
......@@ -146,16 +141,6 @@ public class ReplaceOptions implements JDOMExternalizable, Cloneable, UserDataHo
}
}
public <T> T getUserData(@NotNull Key<T> key) {
if (myUserMap==null) return null;
return (T)myUserMap.get(key);
}
public <T> void putUserData(@NotNull Key<T> key, T value) {
if (myUserMap==null) myUserMap = new THashMap(1);
myUserMap.put(key,value);
}
public ReplacementVariableDefinition getVariableDefinition(String name) {
return variableDefs != null ? variableDefs.get(name): null;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment