build: minor cleanup unused functions