Skip to content

Commit 00e9a89

Browse files
author
Dogan Ucar
committed
remove unused method
1 parent efb8099 commit 00e9a89

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/Common/Abstracts/AbstractLinkedList.php

-19
Original file line numberDiff line numberDiff line change
@@ -215,25 +215,6 @@ public function getLastElements(int $number): ?AbstractLinkedList {
215215
return $list;
216216
}
217217

218-
////This problem cannot be solved if the node to be deleted is
219-
////the last node in the linked list
220-
////node could be marked as dummy
221-
// TODO transfer to Node class
222-
//public function deleteGivenNode(Node $node) {
223-
// if ($node == null || $node->getNext() == null) {
224-
// return null;
225-
// }
226-
// /**
227-
// * a given node should be deleted from itself.
228-
// * To do this, we simply take the next instance and
229-
// * append it to the actual one
230-
// */
231-
// $tmp = $node->getNext();
232-
// $node->setValue($tmp->getValue());
233-
// $node->setNext($tmp->getNext());
234-
// return $node;
235-
//}
236-
237218
/**
238219
* iterates $number times over the head and returns a list that
239220
* contains $number elements

0 commit comments

Comments
 (0)