pop_next_download(), get_queued_count() and get_history_count() had no
callers in the backend, tests or docs. The queue is drained client-side by
the companion extension (retry?start=true is the backend executor entry
point), so the half-wired pop helper only misled readers into thinking the
backend had a drain loop.