remove obsolete commands: EditMode, EditMeta.
remove useless lines.