From a5f0933ab03433ae1fc96d8a936352d5be6e710a Mon Sep 17 00:00:00 2001 From: Gert Driesen Date: Sat, 29 Feb 2020 17:24:24 +0100 Subject: [PATCH] Remove obsolete extension methods. --- .../Common/Extensions.SilverlightShared.cs | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/Renci.SshNet.Silverlight/Common/Extensions.SilverlightShared.cs diff --git a/src/Renci.SshNet.Silverlight/Common/Extensions.SilverlightShared.cs b/src/Renci.SshNet.Silverlight/Common/Extensions.SilverlightShared.cs deleted file mode 100644 index c69e7c4f..00000000 --- a/src/Renci.SshNet.Silverlight/Common/Extensions.SilverlightShared.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Net.Sockets; -using System.Threading; -using System.Security.Cryptography; -using System.Diagnostics; - -namespace Renci.SshNet.Common -{ - /// - /// Collection of different extension method specific for Silverlight - /// - internal static partial class Extensions - { - /// - /// Disposes the specified socket. - /// - /// The socket. - [DebuggerNonUserCode] - internal static void Dispose(this Socket socket) - { - if (socket == null) - throw new NullReferenceException(); - - socket.Close(); - } - - /// - /// Disposes the specified handle. - /// - /// The handle. - [DebuggerNonUserCode] - internal static void Dispose(this WaitHandle handle) - { - if (handle == null) - throw new NullReferenceException(); - - handle.Close(); - } - - /// - /// Disposes the specified algorithm. - /// - /// The algorithm. - [DebuggerNonUserCode] - internal static void Dispose(this HashAlgorithm algorithm) - { - if (algorithm == null) - throw new NullReferenceException(); - - algorithm.Clear(); - } - } -}