Remove unused declaration and function call