From 2875020583f58fd14c7e318a43533d9e573c2e95 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 4 Jun 2022 17:30:21 +0200 Subject: [PATCH] Remove unused code --- .../core/base/BaseHologramLines.java | 29 +------------------ 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/core/src/main/java/me/filoghost/holographicdisplays/core/base/BaseHologramLines.java b/core/src/main/java/me/filoghost/holographicdisplays/core/base/BaseHologramLines.java index afb90ad6..8b533730 100644 --- a/core/src/main/java/me/filoghost/holographicdisplays/core/base/BaseHologramLines.java +++ b/core/src/main/java/me/filoghost/holographicdisplays/core/base/BaseHologramLines.java @@ -36,10 +36,6 @@ public class BaseHologramLines 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 implements Iterab updatePositions(); } - public void addAll(List newLines) { - checkNotDeleted(); - - lines.addAll(newLines); - updatePositions(); - } - public void insert(int beforeIndex, T line) { checkNotDeleted(); @@ -65,22 +54,6 @@ public class BaseHologramLines implements Iterab updatePositions(); } - public void set(int index, T line) { - checkNotDeleted(); - - T previousLine = lines.set(index, line); - previousLine.setDeleted(); - updatePositions(); - } - - public void setAll(List newLines) { - checkNotDeleted(); - - clear(); - lines.addAll(newLines); - updatePositions(); - } - public void remove(int index) { checkNotDeleted(); @@ -133,7 +106,7 @@ public class BaseHologramLines implements Iterab } public double getHeight() { - if (isEmpty()) { + if (lines.isEmpty()) { return 0; }