Create from usage: Removed isUnit.
This commit is contained in:
@@ -662,7 +662,7 @@ public class CreateFunctionFromUsageFix extends CreateFromUsageFixBase {
|
|||||||
} else {
|
} else {
|
||||||
isExtension = true;
|
isExtension = true;
|
||||||
}
|
}
|
||||||
isUnit = returnType.isType() && isUnit(returnType.getType());
|
isUnit = returnType.isType() && KotlinBuiltIns.getInstance().isUnit(returnType.getType());
|
||||||
|
|
||||||
JetScope scope;
|
JetScope scope;
|
||||||
if (isExtension) {
|
if (isExtension) {
|
||||||
@@ -1220,10 +1220,6 @@ public class CreateFunctionFromUsageFix extends CreateFromUsageFixBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isUnit(@NotNull JetType type) {
|
|
||||||
return KotlinBuiltIns.getInstance().isUnit(type);
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static JetIntentionActionFactory createCreateGetFunctionFromUsageFactory() {
|
public static JetIntentionActionFactory createCreateGetFunctionFromUsageFactory() {
|
||||||
return new JetIntentionActionFactory() {
|
return new JetIntentionActionFactory() {
|
||||||
|
|||||||
Reference in New Issue
Block a user