Selaa lähdekoodia

Remove unused code.

drieseng 5 vuotta sitten
vanhempi
sitoutus
c9d6ca4b33
1 muutettua tiedostoa jossa 0 lisäystä ja 32 poistoa
  1. 0 32
      src/Renci.SshNet/Security/BouncyCastle/util/Enums.cs

+ 0 - 32
src/Renci.SshNet/Security/BouncyCastle/util/Enums.cs

@@ -1,32 +0,0 @@
-using System;
-
-namespace Renci.SshNet.Security.Org.BouncyCastle.Utilities
-{
-    internal abstract class Enums
-    {
-        internal static Enum GetEnumValue(System.Type enumType, string s)
-        {
-            // We only want to parse single named constants
-            if (s.Length > 0 && char.IsLetter(s[0]) && s.IndexOf(',') < 0)
-            {
-                s = s.Replace('-', '_');
-                s = s.Replace('/', '_');
-                return (Enum)Enum.Parse(enumType, s, false);
-            }
-
-            throw new ArgumentException();
-        }
-
-        internal static Array GetEnumValues(System.Type enumType)
-        {
-            return Enum.GetValues(enumType);
-        }
-
-        internal static Enum GetArbitraryValue(System.Type enumType)
-        {
-            Array values = GetEnumValues(enumType);
-            int pos = (int)(int.MaxValue) % values.Length;
-            return (Enum)values.GetValue(pos);
-        }
-    }
-}