mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diff: remove unused flag
This commit is contained in:
-1
@@ -47,7 +47,6 @@ public class MigrateDiffTool implements DiffTool {
|
||||
public boolean canShow(DiffRequest request) {
|
||||
if (request instanceof MergeRequest) return false;
|
||||
if (request.getContents().length != 2) return false;
|
||||
if (request.getHints().contains(MigrateToNewDiffUtil.DO_NOT_TRY_MIGRATE)) return false;
|
||||
if (request.getOnOkRunnable() != null) return false;
|
||||
if (!DiffManagerImpl.INTERNAL_DIFF.canShow(request) && !BinaryDiffTool.INSTANCE.canShow(request)) return false;
|
||||
for (DiffTool tool : DiffManagerImpl.getInstanceEx().getAdditionTools()) {
|
||||
|
||||
-2
@@ -31,8 +31,6 @@ import java.util.List;
|
||||
import static com.intellij.openapi.util.text.StringUtil.notNullize;
|
||||
|
||||
public class MigrateToNewDiffUtil {
|
||||
@NonNls public static final Object DO_NOT_TRY_MIGRATE = "doNotTryMigrate";
|
||||
|
||||
@NotNull
|
||||
public static DiffRequest convertRequest(@NotNull com.intellij.openapi.diff.DiffRequest oldRequest) {
|
||||
DiffRequest request = convertRequestFair(oldRequest);
|
||||
|
||||
Reference in New Issue
Block a user