refactor: remove unused function, variable, spaces