Update queue.c

removed unnecessary code