editor: remove dead code