[re]-merged in Brians stuff
[org.ibex.core.git] / src / org / ibex / util / CounterEnumeration.java
diff --git a/src/org/ibex/util/CounterEnumeration.java b/src/org/ibex/util/CounterEnumeration.java
deleted file mode 100644 (file)
index 5a01f3e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (C) 2004 Adam Megacz <adam@ibex.org> all rights reserved.
-//
-// You may modify, copy, and redistribute this code under the terms of
-// the GNU Library Public License version 2.1, with the exception of
-// the portion of clause 6a after the semicolon (aka the "obnoxious
-// relink clause")
-package org.ibex.util;
-import java.util.*;
-
-public class CounterEnumeration implements Enumeration {
-    public final int max;
-    private int cur = 0;
-    public CounterEnumeration(int i) { max = i; }
-    public void reset() { cur = 0; }
-    public boolean hasMoreElements() { return cur < max; }
-    public Object nextElement() { return new Integer(cur++); }
-}