Merge "Remove unnecessary calls to LinkedList::clear()"