summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/cmd2.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 817a1f21..04758ed7 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2569,15 +2569,6 @@ Usage: Usage: unalias [-a] name [name ...]
except IOError as e:
self.perror(e)
- # noinspection PyUnusedLocal
- def onecmd_plus_hooks(cmd_plus_args):
- """Run a cmd2.Cmd command from a Python script or the interactive Python console.
-
- :param cmd_plus_args: str - command line including command and arguments to run
- :return: bool - True if cmdloop() should exit once leaving the interactive Python console
- """
- return self.onecmd_plus_hooks(cmd_plus_args + '\n')
-
bridge = PyscriptBridge(self)
self.pystate['run'] = run
self.pystate[self.pyscript_name] = bridge