Remove unused code

This commit is contained in:
filoghost 2022-06-04 17:30:21 +02:00
parent 8018e52bbb
commit 2875020583

View File

@ -36,10 +36,6 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
return lines.size(); return lines.size();
} }
public boolean isEmpty() {
return lines.isEmpty();
}
public @NotNull T get(int index) { public @NotNull T get(int index) {
return lines.get(index); return lines.get(index);
} }
@ -51,13 +47,6 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
updatePositions(); updatePositions();
} }
public void addAll(List<? extends T> newLines) {
checkNotDeleted();
lines.addAll(newLines);
updatePositions();
}
public void insert(int beforeIndex, T line) { public void insert(int beforeIndex, T line) {
checkNotDeleted(); checkNotDeleted();
@ -65,22 +54,6 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
updatePositions(); updatePositions();
} }
public void set(int index, T line) {
checkNotDeleted();
T previousLine = lines.set(index, line);
previousLine.setDeleted();
updatePositions();
}
public void setAll(List<T> newLines) {
checkNotDeleted();
clear();
lines.addAll(newLines);
updatePositions();
}
public void remove(int index) { public void remove(int index) {
checkNotDeleted(); checkNotDeleted();
@ -133,7 +106,7 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
} }
public double getHeight() { public double getHeight() {
if (isEmpty()) { if (lines.isEmpty()) {
return 0; return 0;
} }