Remove unused function log_queue