summary refs log tree commit diff
path: root/crypto/src/util/collections/EmptyEnumerable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/util/collections/EmptyEnumerable.cs')
-rw-r--r--crypto/src/util/collections/EmptyEnumerable.cs44
1 files changed, 0 insertions, 44 deletions
diff --git a/crypto/src/util/collections/EmptyEnumerable.cs b/crypto/src/util/collections/EmptyEnumerable.cs
deleted file mode 100644
index a61a0789a..000000000
--- a/crypto/src/util/collections/EmptyEnumerable.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Collections;
-
-namespace Org.BouncyCastle.Utilities.Collections
-{
-	public sealed class EmptyEnumerable
-		: IEnumerable
-	{
-		public static readonly IEnumerable Instance = new EmptyEnumerable();
-
-		private EmptyEnumerable()
-		{
-		}
-
-		public IEnumerator GetEnumerator()
-		{
-			return EmptyEnumerator.Instance;
-		}
-	}
-
-	public sealed class EmptyEnumerator
-		: IEnumerator
-	{
-		public static readonly IEnumerator Instance = new EmptyEnumerator();
-
-		private EmptyEnumerator()
-		{
-		}
-
-		public bool MoveNext()
-		{
-			return false;
-		}
-
-		public void Reset()
-		{
-		}
-
-		public object Current
-		{
-			get { throw new InvalidOperationException("No elements"); }
-		}
-	}
-}