From fecfe9d705c9618e5cfa8d86c1e65ec6ac930e30 Mon Sep 17 00:00:00 2001 From: EAlexa Date: Tue, 7 Apr 2020 16:36:03 +0200 Subject: [PATCH] remove unused method --- DataStructures/Lists/CursorLinkedList.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/DataStructures/Lists/CursorLinkedList.java b/DataStructures/Lists/CursorLinkedList.java index 6e1caefc6..b12794fd1 100644 --- a/DataStructures/Lists/CursorLinkedList.java +++ b/DataStructures/Lists/CursorLinkedList.java @@ -4,6 +4,7 @@ import java.util.Objects; public class CursorLinkedList { + private static class Node { T element; @@ -13,13 +14,8 @@ public class CursorLinkedList { this.element = element; this.next = next; } - - boolean isEmpty() { - return element == null; - } } - private final int os; private int head; private final Node[] cursorSpace; @@ -27,6 +23,7 @@ public class CursorLinkedList { private final static int CURSOR_SPACE_SIZE = 100; + { // init at loading time cursorSpace = new Node[CURSOR_SPACE_SIZE];