Remove dead code to pass flake8 testing