Remove some unused code, and Editor::get_prefix() which wasn't doing anything.