Remove duplicate function definition in queue.h

Catched this while writing tests for core.