mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-26 10:47:46 +01:00
Remove unused code
This commit is contained in:
parent
8018e52bbb
commit
2875020583
@ -36,10 +36,6 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
|
||||
return lines.size();
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return lines.isEmpty();
|
||||
}
|
||||
|
||||
public @NotNull T get(int index) {
|
||||
return lines.get(index);
|
||||
}
|
||||
@ -51,13 +47,6 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
|
||||
updatePositions();
|
||||
}
|
||||
|
||||
public void addAll(List<? extends T> newLines) {
|
||||
checkNotDeleted();
|
||||
|
||||
lines.addAll(newLines);
|
||||
updatePositions();
|
||||
}
|
||||
|
||||
public void insert(int beforeIndex, T line) {
|
||||
checkNotDeleted();
|
||||
|
||||
@ -65,22 +54,6 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
|
||||
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) {
|
||||
checkNotDeleted();
|
||||
|
||||
@ -133,7 +106,7 @@ public class BaseHologramLines<T extends EditableHologramLine> implements Iterab
|
||||
}
|
||||
|
||||
public double getHeight() {
|
||||
if (isEmpty()) {
|
||||
if (lines.isEmpty()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user