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