remove dead code

(thanks to dialyzer for the assist)