From e32429bf872acc948d39dfe39df49a33cc6a3af4 Mon Sep 17 00:00:00 2001 From: Tishasoumya-02 Date: Thu, 9 Sep 2021 09:49:25 +0530 Subject: [PATCH] fix : display function removed --- data_structures/reverse_a_linked_list.cpp | 16 ---------------- ...eRunnerFile.cpp => temporary_code_runner.cpp} | 0 2 files changed, 16 deletions(-) rename data_structures/{tempCodeRunnerFile.cpp => temporary_code_runner.cpp} (100%) diff --git a/data_structures/reverse_a_linked_list.cpp b/data_structures/reverse_a_linked_list.cpp index 7b983ebb6..e6299c507 100644 --- a/data_structures/reverse_a_linked_list.cpp +++ b/data_structures/reverse_a_linked_list.cpp @@ -142,22 +142,6 @@ int list::last() { else return 0; } - -/** - * function displays all the elements in the list - * @returns 'void' - */ -void list::display() { - if (!isEmpty()) { - Node *node = head; - while (node != nullptr) { - std::cout << node->val << "\t"; - node = node->next; - } - std::cout << std::endl; - } -} - } // namespace linked_list } // namespace data_structures diff --git a/data_structures/tempCodeRunnerFile.cpp b/data_structures/temporary_code_runner.cpp similarity index 100% rename from data_structures/tempCodeRunnerFile.cpp rename to data_structures/temporary_code_runner.cpp