From d5e6650e618c20c59296010fdf986c8a835f4b8e Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 25 May 2018 17:01:34 +0300 Subject: [PATCH] [platform] drops RESET warnings --- .../openapi/vfs/impl/local/NativeFileWatcherImpl.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/NativeFileWatcherImpl.java b/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/NativeFileWatcherImpl.java index d6f3e7b8a261..ea08c89d75bc 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/NativeFileWatcherImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/NativeFileWatcherImpl.java @@ -58,7 +58,6 @@ public class NativeFileWatcherImpl extends PluggableFileWatcher { private volatile List myFlatWatchRoots = Collections.emptyList(); private final String[] myLastChangedPaths = new String[2]; private int myLastChangedPathIndex; - private boolean myInternalMode; @Override public void initialize(@NotNull ManagingFS managingFS, @NotNull FileWatcherNotificationSink notificationSink) { @@ -84,7 +83,6 @@ public class NativeFileWatcherImpl extends PluggableFileWatcher { try { startupProcess(false); LOG.info("Native file watcher is operational."); - myInternalMode = ApplicationManager.getApplication().isInternal(); } catch (IOException e) { LOG.warn(e.getMessage()); @@ -347,7 +345,6 @@ public class NativeFileWatcherImpl extends PluggableFileWatcher { } else if (watcherOp == WatcherOp.RESET) { myNotificationSink.notifyReset(null); - if (myInternalMode) LOG.warn("RESET happened"); } else { myLastOp = watcherOp; @@ -396,7 +393,6 @@ public class NativeFileWatcherImpl extends PluggableFileWatcher { private void processChange(String path, WatcherOp op) { if (SystemInfo.isWindows && op == WatcherOp.RECDIRTY) { myNotificationSink.notifyReset(path); - if (myInternalMode) LOG.warn("RESET happened on " + path); return; }