debugger: remove unused function.