refactor(dialog): remove dead code