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