Remove an unused variable and function.

Found while building with Clang, not sure why I didn't hit this before?