Remove unused global variables.

Reviewed by:	ae, glebius
Clean up some unused leftover code.

Pointed out by:	ae