Sfoglia il codice sorgente

Remove obsolete source files.

Gert Driesen 9 anni fa
parent
commit
653db3a226

+ 0 - 68
src/Renci.SshNet.Silverlight/Common/ASCIIEncoding.Silverlight.cs

@@ -1,68 +0,0 @@
-using System;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using System.Text;
-
-namespace Renci.SshNet.Common
-{
-    public partial class ASCIIEncoding : Encoding
-    {
-        /// <summary>
-        /// Gets the name registered with the
-        /// Internet Assigned Numbers Authority (IANA) for the current encoding.
-        /// </summary>
-        /// <returns>
-        /// The IANA name for the current <see cref="System.Text.Encoding"/>.
-        /// </returns>
-        public override string WebName
-        {
-            get
-            {
-                return "iso-8859-1";
-            }
-        }
-
-        /// <summary>
-        /// Decodes all the bytes in the specified byte array into a string.
-        /// </summary>
-        /// <param name="bytes">The byte array containing the sequence of bytes to decode.</param>
-        /// <returns>
-        /// A <see cref="T:System.String"/> containing the results of decoding the specified sequence of bytes.
-        /// </returns>
-        /// <exception cref="T:System.ArgumentException">The byte array contains invalid Unicode code points.</exception>
-        ///   
-        /// <exception cref="T:System.ArgumentNullException">
-        ///   <paramref name="bytes"/> is null. </exception>
-        ///   
-        /// <exception cref="T:System.Text.DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="T:System.Text.DecoderExceptionFallback"/>.</exception>
-        public String GetString(byte[] bytes)
-        {
-            if (bytes == null)
-            {
-                throw new ArgumentNullException("bytes");
-            }
-            if (bytes.Length == 0)
-            {
-                return String.Empty;
-            }
-            int count = bytes.Length;
-            int posn = 0;
-
-            char[] chars = new char[count];
-
-            while (count-- > 0)
-            {
-                chars[posn] = (char)(bytes[posn]);
-                ++posn;
-            }
-            return new string(chars);
-        }    
-    }
-}

+ 0 - 70
src/Renci.SshNet.Silverlight5/Common/Extensions.SilverlightShared.cs

@@ -1,70 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Net.Sockets;
-using System.Threading;
-using System.Security.Cryptography;
-using System.Diagnostics;
-
-namespace Renci.SshNet.Common
-{
-    /// <summary>
-    /// Collection of different extension method specific for Silverlight
-    /// </summary>
-    public static partial class Extensions
-    {
-        /// <summary>
-        /// Determines whether [is null or white space] [the specified value].
-        /// </summary>
-        /// <param name="value">The value.</param>
-        /// <returns>
-        ///   <c>true</c> if [is null or white space] [the specified value]; otherwise, <c>false</c>.
-        /// </returns>
-        internal static bool IsNullOrWhiteSpace(this string value)
-        {
-            if (string.IsNullOrEmpty(value)) return true;
-
-            return value.All(char.IsWhiteSpace);
-        }
-
-        /// <summary>
-        /// Disposes the specified socket.
-        /// </summary>
-        /// <param name="socket">The socket.</param>
-        [DebuggerNonUserCode]
-        internal static void Dispose(this Socket socket)
-        {
-            if (socket == null)
-                throw new NullReferenceException();
-
-            socket.Close();
-        }
-
-        /// <summary>
-        /// Disposes the specified handle.
-        /// </summary>
-        /// <param name="handle">The handle.</param>
-        [DebuggerNonUserCode]
-        internal static void Dispose(this WaitHandle handle)
-        {
-            if (handle == null)
-                throw new NullReferenceException();
-
-            handle.Close();
-        }
-
-        /// <summary>
-        /// Disposes the specified algorithm.
-        /// </summary>
-        /// <param name="algorithm">The algorithm.</param>
-        [DebuggerNonUserCode]
-        internal static void Dispose(this HashAlgorithm algorithm)
-        {
-            if (algorithm == null)
-                throw new NullReferenceException();
-
-            algorithm.Clear();
-        }
-    }
-}