LinkedList.c: Remove unused variables and prefer private functions to their public counterparts