fix : display function removed

This commit is contained in:
Tishasoumya-02
2021-09-09 09:49:25 +05:30
parent f7695035f5
commit e32429bf87
2 changed files with 0 additions and 16 deletions

View File

@@ -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