diff options
Diffstat (limited to 'mcs/class/System/System.IO/InotifyWatcher.cs')
-rw-r--r-- | mcs/class/System/System.IO/InotifyWatcher.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/mcs/class/System/System.IO/InotifyWatcher.cs b/mcs/class/System/System.IO/InotifyWatcher.cs index 8668533ff83..fe023429a0c 100644 --- a/mcs/class/System/System.IO/InotifyWatcher.cs +++ b/mcs/class/System/System.IO/InotifyWatcher.cs @@ -133,9 +133,8 @@ namespace System.IO { return true; } - public void StartDispatching (object handle) + public void StartDispatching (FileSystemWatcher fsw) { - var fsw = handle as FileSystemWatcher; ParentInotifyData parent; lock (this) { if ((long) FD == -1) @@ -329,9 +328,8 @@ namespace System.IO { } } - public void StopDispatching (object handle) + public void StopDispatching (FileSystemWatcher fsw) { - var fsw = handle as FileSystemWatcher; ParentInotifyData parent; lock (this) { parent = (ParentInotifyData) watches [fsw]; @@ -610,11 +608,6 @@ namespace System.IO { return AddWatch (fd, directory, mask); } - public void Dispose (object handle) - { - // does nothing - } - [DllImport ("libc", EntryPoint="close")] internal extern static int Close (IntPtr fd); |