Remove unecessary import and implementation

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2845 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
charlie.groves
2010-08-31 01:13:11 +00:00
parent 60224534e9
commit 087dbd0e9b
2 changed files with 4 additions and 5 deletions
@@ -101,9 +101,9 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
@Override @Override
public boolean containsValue (Object o) public boolean containsValue (Object o)
{ {
for (int ii = 0, ll = _buckets.length; ii < ll; ii++) { for (Record<V> bucket : _buckets) {
for (Record<V> r = _buckets[ii]; r != null; r = r.next) { for (Record<V> r = bucket; r != null; r = r.next) {
if (ObjectUtil.equals(r.value, o)) { if (ObjectUtil.equals(bucket.value, o)) {
return true; return true;
} }
} }
@@ -526,7 +526,7 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
} }
protected static class Record<V> protected static class Record<V>
implements Cloneable, Entry<Integer,V>, IntEntry<V> implements Cloneable, IntEntry<V>
{ {
public Record<V> next; public Record<V> next;
public int key; public int key;
@@ -23,7 +23,6 @@ package com.samskivert.util;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Properties; import java.util.Properties;