somehow we gained two implementations of some methods...this of course caused some...
authorbdemsky <bdemsky>
Fri, 10 Apr 2009 06:16:02 +0000 (06:16 +0000)
committerbdemsky <bdemsky>
Fri, 10 Apr 2009 06:16:02 +0000 (06:16 +0000)
Robust/src/ClassLibrary/Vector.java

index cba46587ccd90f8e2d0b8d230d7cc8b76afadcfe..9ae2baf7e71a330072068fe36fb0c58d941a40e7 100644 (file)
@@ -114,19 +114,6 @@ public class Vector {
     array[index] = obj;
   }
 
-  public void remove(Object o) {
-    int getIndex;
-    for(int i=0; i<size; i++) {
-      if (o.equals(array[i]))
-        getIndex = i;
-    }
-    for(int i=getIndex; i<(size-1); i++) {
-      array[i]=array[i+1];
-    }
-    size--;
-  }
-
-
   public void removeElementAt(int index) {
     if (index<0||index>=size) {
       System.printString("Illegal Vector.removeElementAt\n");
@@ -144,12 +131,4 @@ public class Vector {
       removeElementAt(0);
     }
   }
-
-  public boolean contains(Object o) {
-    for(int i = 0; i < size; i++) {
-      if(o.equals(array[i]))
-        return true;
-    }
-    return false;
-  }
 }