mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
[Bleeding] Strip out unused HashSet in IntHashMap
This commit is contained in:
parent
eaa3154b0e
commit
e079d9457e
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ public class IntHashMap {
|
||||||
private int c = 12;
|
private int c = 12;
|
||||||
private final float d = 0.75F;
|
private final float d = 0.75F;
|
||||||
private transient volatile int e;
|
private transient volatile int e;
|
||||||
private Set f = new HashSet();
|
// private Set f = new HashSet(); // CraftBukkit - expensive and unused
|
||||||
|
|
||||||
public IntHashMap() {}
|
public IntHashMap() {}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ public class IntHashMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(int i, Object object) {
|
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 j = g(i);
|
||||||
int k = a(j, this.a.length);
|
int k = a(j, this.a.length);
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ public class IntHashMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object d(int i) {
|
public Object d(int i) {
|
||||||
this.f.remove(Integer.valueOf(i));
|
// this.f.remove(Integer.valueOf(i)); // CraftBukkit
|
||||||
IntHashMapEntry inthashmapentry = this.e(i);
|
IntHashMapEntry inthashmapentry = this.e(i);
|
||||||
|
|
||||||
return inthashmapentry == null ? null : inthashmapentry.b;
|
return inthashmapentry == null ? null : inthashmapentry.b;
|
||||||
|
|
Loading…
Add table
Reference in a new issue