diff --git a/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java b/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java index 646a1022f099..70439619f2a8 100644 --- a/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java +++ b/platform/inspect/src/com/intellij/codeInspection/InspectionApplicationBase.java @@ -104,7 +104,7 @@ public class InspectionApplicationBase implements CommandLineInspectionProgressR String myTargets; public boolean myErrorCodeRequired = true; - protected String myScopePattern; + String myScopePattern; public void startup() { if (myProjectPath == null) { @@ -276,11 +276,6 @@ public class InspectionApplicationBase implements CommandLineInspectionProgressR } protected @Nullable SearchScope getSearchScope(@NotNull Project project) throws ExecutionException, InterruptedException { - - if (myAnalyzeChanges) { - return getSearchScopeFromChangedFiles(project); - } - if (myScopePattern != null) { try { PackageSet packageSet = PackageSetFactory.getInstance().compile(myScopePattern); @@ -313,14 +308,6 @@ public class InspectionApplicationBase implements CommandLineInspectionProgressR return namedScope != null ? GlobalSearchScopesCore.filterScope(project, namedScope) : GlobalSearchScope.projectScope(project); } - public @NotNull SearchScope getSearchScopeFromChangedFiles(@NotNull Project project) throws ExecutionException, InterruptedException { - List files = getChangedFiles(project); - for (VirtualFile file : files) { - reportMessage(0, "modified file: " + file.getPath()); - } - return GlobalSearchScope.filesWithoutLibrariesScope(project, files); - } - private static void addRootChangesListener(Disposable parentDisposable, InspectionsReportConverter reportConverter) { MessageBusConnection applicationBus = ApplicationManager.getApplication().getMessageBus().connect(parentDisposable); applicationBus.subscribe(ProjectManager.TOPIC, new ProjectManagerListener() {