summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
authorMike Primm <mike@primmhome.com>2012-08-15 21:54:38 -0500
committerTravis Watkins <amaranth@ubuntu.com>2012-08-19 09:51:07 -0500
commite079d9457e283cc7eb5fb86aabb6fc340d7c69ed (patch)
tree742aca7f60b82d08c913df1d16ff436eb6e06e90 /src/main/java/net/minecraft
parenteaa3154b0e267d4369158eaa9e6d3f6640f6728f (diff)
downloadcraftbukkit-e079d9457e283cc7eb5fb86aabb6fc340d7c69ed.tar
craftbukkit-e079d9457e283cc7eb5fb86aabb6fc340d7c69ed.tar.gz
craftbukkit-e079d9457e283cc7eb5fb86aabb6fc340d7c69ed.tar.lz
craftbukkit-e079d9457e283cc7eb5fb86aabb6fc340d7c69ed.tar.xz
craftbukkit-e079d9457e283cc7eb5fb86aabb6fc340d7c69ed.zip
[Bleeding] Strip out unused HashSet in IntHashMap
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/IntHashMap.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/IntHashMap.java b/src/main/java/net/minecraft/server/IntHashMap.java
index de350ee7..fff9d7ac 100644
--- a/src/main/java/net/minecraft/server/IntHashMap.java
+++ b/src/main/java/net/minecraft/server/IntHashMap.java
@@ -10,7 +10,7 @@ public class IntHashMap {
private int c = 12;
private final float d = 0.75F;
private transient volatile int e;
- private Set f = new HashSet();
+ // private Set f = new HashSet(); // CraftBukkit - expensive and unused
public IntHashMap() {}
@@ -52,7 +52,7 @@ public class IntHashMap {
}
public void a(int i, Object object) {
- this.f.add(Integer.valueOf(i));
+ // this.f.add(Integer.valueOf(i)); // CraftBukkit
int j = g(i);
int k = a(j, this.a.length);
@@ -107,7 +107,7 @@ public class IntHashMap {
}
public Object d(int i) {
- this.f.remove(Integer.valueOf(i));
+ // this.f.remove(Integer.valueOf(i)); // CraftBukkit
IntHashMapEntry inthashmapentry = this.e(i);
return inthashmapentry == null ? null : inthashmapentry.b;