mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: remove a bit of dead code
This commit is contained in:
-14
@@ -431,20 +431,6 @@ public class JavaStructuralSearchProfile extends StructuralSearchProfile {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitMethod(PsiMethod method) {
|
||||
super.visitMethod(method);
|
||||
|
||||
String name = method.getName();
|
||||
if (StructuralSearchUtil.isTypedVariable(name)) {
|
||||
name = Replacer.stripTypedVariableDecoration(name);
|
||||
|
||||
ParameterInfo methodInfo = builder.findParameterization(name);
|
||||
methodInfo.setScopeParameterization(true);
|
||||
//if (scopedParameterizations != null) scopedParameterizations.put(method.getTextRange(), methodInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitParameter(PsiParameter parameter) {
|
||||
super.visitParameter(parameter);
|
||||
|
||||
-9
@@ -13,7 +13,6 @@ public final class ParameterInfo {
|
||||
private boolean hasCommaBefore;
|
||||
private int beforeDelimiterPos;
|
||||
private boolean hasCommaAfter;
|
||||
private boolean scopeParameterization;
|
||||
private boolean replacementVariable;
|
||||
private PsiElement myElement;
|
||||
|
||||
@@ -97,14 +96,6 @@ public final class ParameterInfo {
|
||||
this.hasCommaAfter = hasCommaAfter;
|
||||
}
|
||||
|
||||
public boolean isScopeParameterization() {
|
||||
return scopeParameterization;
|
||||
}
|
||||
|
||||
public void setScopeParameterization(boolean scopeParameterization) {
|
||||
this.scopeParameterization = scopeParameterization;
|
||||
}
|
||||
|
||||
public boolean isReplacementVariable() {
|
||||
return replacementVariable;
|
||||
}
|
||||
|
||||
-1
@@ -30,7 +30,6 @@ public final class ReplacementBuilder {
|
||||
private HashMap<String,MatchResult> matchMap;
|
||||
private final Map<String, ScriptSupport> replacementVarsMap;
|
||||
private final ReplaceOptions options;
|
||||
//private Map<TextRange,ParameterInfo> scopedParameterizations;
|
||||
|
||||
ReplacementBuilder(final Project project,final ReplaceOptions options) {
|
||||
replacementVarsMap = new HashMap<String, ScriptSupport>();
|
||||
|
||||
Reference in New Issue
Block a user