Removed unused code from list.c