From 5a32ae6180b181029283fd5d26d6f256d48d23ff Mon Sep 17 00:00:00 2001 From: Eeo Jun <141bytes@gmail.com> Date: Wed, 9 Nov 2016 21:07:15 +0800 Subject: [PATCH] remove un-needed function --- editor.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/editor.py b/editor.py index 3cf55f0..41ad538 100755 --- a/editor.py +++ b/editor.py @@ -51,11 +51,6 @@ def get_editor_args(editor): return [] -def get_platform_editor_var(): - # TODO: Make platform specific - return "$EDITOR" - - def get_editor(): # Get the editor from the environment. Prefer VISUAL to EDITOR editor = os.environ.get('VISUAL') or os.environ.get('EDITOR') @@ -69,7 +64,7 @@ def get_editor(): return path raise EditorError("Unable to find a viable editor on this system." - "Please consider setting your %s variable" % get_platform_editor_var()) + "Please consider setting your $EDITOR variable") def get_tty_filename():