Merge pull request #717 from mono/client_websockets_impl
[mono.git] / mcs / class / Mono.Posix / Mono.Unix / UnixFileInfo.cs
index 7628d92b0b5193c415b9595c9415c99cd64f1bbd..48248c14312bd2d4cde1204e0a1d45450039af80 100644 (file)
@@ -72,17 +72,6 @@ namespace Mono.Unix {
                        return Create (mode);
                }
 
-               [CLSCompliant (false)]
-               [Obsolete ("Use Create(Mono.Unix.Native.FilePermissions)", true)]
-               public UnixStream Create (FilePermissions mode)
-               {
-                       int fd = Syscall.creat (FullPath, mode);
-                       if (fd < 0)
-                               UnixMarshal.ThrowExceptionForLastError ();
-                       base.Refresh ();
-                       return new UnixStream (fd);
-               }
-
                [CLSCompliant (false)]
                public UnixStream Create (Native.FilePermissions mode)
                {
@@ -98,16 +87,6 @@ namespace Mono.Unix {
                        return Create ((Native.FilePermissions) mode);
                }
 
-               [CLSCompliant (false)]
-               [Obsolete ("Use Open(Mono.Unix.Native.OpenFlags)", true)]
-               public UnixStream Open (OpenFlags flags)
-               {
-                       int fd = Syscall.open (FullPath, flags);
-                       if (fd < 0)
-                               UnixMarshal.ThrowExceptionForLastError ();
-                       return new UnixStream (fd);
-               }
-
                [CLSCompliant (false)]
                public UnixStream Open (Native.OpenFlags flags)
                {
@@ -122,16 +101,6 @@ namespace Mono.Unix {
                        return new UnixStream (fd);
                }
 
-               [CLSCompliant (false)]
-               [Obsolete ("Use Open(Mono.Unix.Native.OpenFlags,Mono.Unix.Native.FilePermissions)", true)]
-               public UnixStream Open (OpenFlags flags, FilePermissions mode)
-               {
-                       int fd = Syscall.open (FullPath, flags, mode);
-                       if (fd < 0)
-                               UnixMarshal.ThrowExceptionForLastError ();
-                       return new UnixStream (fd);
-               }
-
                [CLSCompliant (false)]
                public UnixStream Open (Native.OpenFlags flags, Native.FilePermissions mode)
                {
@@ -153,14 +122,6 @@ namespace Mono.Unix {
                        return Open (flags);
                }
 
-               [CLSCompliant (false)]
-               [Obsolete ("Use Open (System.IO.FileMode,System.IO.FileAccess,Mono.Unix.Native.FilePermissions)", true)]
-               public UnixStream Open (FileMode mode, FileAccess access, FilePermissions perms)
-               {
-                       OpenFlags flags = UnixConvert.ToOpenFlags (mode, access);
-                       return Open (flags, perms);
-               }
-
                [CLSCompliant (false)]
                public UnixStream Open (FileMode mode, FileAccess access, Native.FilePermissions perms)
                {