[#1795] remove dead code