diff --git a/DataStructures/Lists/SinglyLinkedList.java b/DataStructures/Lists/SinglyLinkedList.java index 1196851a..5fda2f5f 100644 --- a/DataStructures/Lists/SinglyLinkedList.java +++ b/DataStructures/Lists/SinglyLinkedList.java @@ -120,9 +120,9 @@ public class SinglyLinkedList { cur = cur.next; } - Node destroy = cur.next; + //Node destroy = cur.next; cur.next = cur.next.next; - destroy = null; // clear to let GC do its work + //destroy = null; // clear to let GC do its work size--; }