merged 1.1 branch into head
[mir.git] / source / mir / util / SubsetIterator.java
index b1b1439..652bdfd 100755 (executable)
  */
 package mir.util;
 
-import java.util.List;
 import java.util.NoSuchElementException;
 
 public class SubsetIterator implements RewindableIterator {
   private RewindableIterator master;
-  private List cachedItems;
   private int position;
   private int skip;
   private int maxLength;
@@ -62,8 +60,7 @@ public class SubsetIterator implements RewindableIterator {
   public Object next() {
     if (hasNext())
       return getNext();
-    else
-      throw new NoSuchElementException();
+               throw new NoSuchElementException();
   }
 
   public void remove() {
@@ -73,5 +70,5 @@ public class SubsetIterator implements RewindableIterator {
   public void rewind() {
     position=0;
     master.rewind();
-  };
+  }
 }
\ No newline at end of file