Removal of excessive handling code
[NovacoinLibrary.git] / Novacoin / WrappedList.cs
index e871025..79068c3 100644 (file)
@@ -28,11 +28,6 @@ namespace Novacoin
         private int Index;
         private List<T> Elements;
 
-        public int ItemsLeft
-        {
-            get { return Elements.Count - Index; }
-        }
-
         public WrappedList(IList<T> List, int Start)
         {
             Elements = new List<T>(List);
@@ -57,7 +52,7 @@ namespace Novacoin
 
         public T[] GetItems(int Count)
         {
-            if (ItemsLeft < Count)
+            if (Elements.Count - Index < Count)
             {
                 throw new WrappedListException("Unable to read requested amount of data.");
             }