Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 04b4b0b

Browse files
author
MikhailArkhipov
committed
Remove changed
1 parent 1f639a3 commit 04b4b0b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/LanguageServer/Impl/PathsWatcher.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public PathsWatcher(string[] paths, Action onChanged, ILogger log) {
4040

4141
_onChanged = onChanged;
4242

43-
var list = new List<FileSystemWatcher>();
4443
var reduced = ReduceToCommonRoots(paths);
4544
foreach (var p in reduced) {
4645
try {
@@ -59,12 +58,10 @@ public PathsWatcher(string[] paths, Action onChanged, ILogger log) {
5958
NotifyFilter = NotifyFilters.FileName | NotifyFilters.DirectoryName
6059
};
6160

62-
fsw.Changed += OnChanged;
6361
fsw.Created += OnChanged;
6462
fsw.Deleted += OnChanged;
6563

6664
_disposableBag
67-
.Add(() => fsw.Changed -= OnChanged)
6865
.Add(() => fsw.Created -= OnChanged)
6966
.Add(() => fsw.Deleted -= OnChanged)
7067
.Add(() => fsw.EnableRaisingEvents = false)

0 commit comments

Comments
 (0)