Remove unused variable and methods.