summary refs log tree commit diff
path: root/crypto/src/util/Platform.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/util/Platform.cs')
-rw-r--r--crypto/src/util/Platform.cs102
1 files changed, 0 insertions, 102 deletions
diff --git a/crypto/src/util/Platform.cs b/crypto/src/util/Platform.cs
index f0b2406a5..b25d76dae 100644
--- a/crypto/src/util/Platform.cs
+++ b/crypto/src/util/Platform.cs
@@ -1,12 +1,6 @@
 using System;
 using System.Globalization;
 
-#if PORTABLE
-using System.Collections.Generic;
-#else
-using System.Collections;
-#endif
-
 namespace Org.BouncyCastle.Utilities
 {
     internal abstract class Platform
@@ -32,107 +26,11 @@ namespace Org.BouncyCastle.Utilities
             }
         }
 
-        internal static Exception CreateNotImplementedException(
-            string message)
-        {
-            return new NotImplementedException(message);
-        }
-
-#if PORTABLE
-        internal static System.Collections.IList CreateArrayList()
-        {
-            return new List<object>();
-        }
-        internal static System.Collections.IList CreateArrayList(int capacity)
-        {
-            return new List<object>(capacity);
-        }
-        internal static System.Collections.IList CreateArrayList(System.Collections.ICollection collection)
-        {
-            System.Collections.IList result = new List<object>(collection.Count);
-            foreach (object o in collection)
-            {
-                result.Add(o);
-            }
-            return result;
-        }
-        internal static System.Collections.IList CreateArrayList(System.Collections.IEnumerable collection)
-        {
-            System.Collections.IList result = new List<object>();
-            foreach (object o in collection)
-            {
-                result.Add(o);
-            }
-            return result;
-        }
-        internal static System.Collections.IDictionary CreateHashtable()
-        {
-            return new Dictionary<object, object>();
-        }
-        internal static System.Collections.IDictionary CreateHashtable(int capacity)
-        {
-            return new Dictionary<object, object>(capacity);
-        }
-        internal static System.Collections.IDictionary CreateHashtable(System.Collections.IDictionary dictionary)
-        {
-            System.Collections.IDictionary result = new Dictionary<object, object>(dictionary.Count);
-            foreach (System.Collections.DictionaryEntry entry in dictionary)
-            {
-                result.Add(entry.Key, entry.Value);
-            }
-            return result;
-        }
-#else
-        internal static System.Collections.IList CreateArrayList()
-        {
-            return new ArrayList();
-        }
-        internal static System.Collections.IList CreateArrayList(int capacity)
-        {
-            return new ArrayList(capacity);
-        }
-        internal static System.Collections.IList CreateArrayList(System.Collections.ICollection collection)
-        {
-            return new ArrayList(collection);
-        }
-        internal static System.Collections.IList CreateArrayList(System.Collections.IEnumerable collection)
-        {
-            ArrayList result = new ArrayList();
-            foreach (object o in collection)
-            {
-                result.Add(o);
-            }
-            return result;
-        }
-        internal static System.Collections.IDictionary CreateHashtable()
-        {
-            return new Hashtable();
-        }
-        internal static System.Collections.IDictionary CreateHashtable(int capacity)
-        {
-            return new Hashtable(capacity);
-        }
-        internal static System.Collections.IDictionary CreateHashtable(System.Collections.IDictionary dictionary)
-        {
-            return new Hashtable(dictionary);
-        }
-#endif
-
         internal static int GetHashCode(object obj)
         {
             return null == obj ? 0 : obj.GetHashCode();
         }
 
-        internal static string ToLowerInvariant(string s)
-        {
-            return s.ToLowerInvariant();
-        }
-
-        internal static string ToUpperInvariant(string s)
-        {
-            return s.ToUpperInvariant();
-        }
-
         internal static readonly string NewLine = Environment.NewLine;
 
         internal static void Dispose(IDisposable d)