remove obsolete code causing dialyzer warnings