mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-26 18:57:40 +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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user