Remove non queue related code.

Remove all non queue related code.