Remove unused variables detected by Clang 4.2.