[groovy] get rid of GroovyClassSubstitution

This commit is contained in:
Daniil Ovchinnikov
2016-11-08 22:30:24 +03:00
parent c578609e34
commit ebe978a24e
2 changed files with 1 additions and 26 deletions
@@ -1,24 +0,0 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jetbrains.plugins.groovy.lang.psi;
import com.intellij.psi.PsiClass;
/**
* @author peter
*/
public interface GrClassSubstitution extends PsiClass {
}
@@ -26,7 +26,6 @@ import com.intellij.refactoring.util.CommonRefactoringUtil;
import com.intellij.usageView.UsageViewUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.plugins.groovy.lang.psi.GrClassSubstitution;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrField;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrVariable;
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.GrTypeDefinition;
@@ -49,7 +48,7 @@ public class GroovyInlineHandler implements InlineHandler {
return GroovyInlineMethodUtil.inlineMethodSettings((GrMethod)element, editor, invokedOnReference);
}
else {
if (element instanceof GrTypeDefinition || element instanceof GrClassSubstitution) {
if (element instanceof GrTypeDefinition) {
return null; //todo inline to anonymous class, push members from super class
}
}