Remove a few unused variables, functions, and member variables.