From 00fa436cc7202ba1719fe2fdc570f796220b2812 Mon Sep 17 00:00:00 2001 From: Fred Date: Mon, 18 Mar 2013 22:23:43 +0800 Subject: [PATCH] Removed unnecessary method --- lib/command.py | 6 ------ lib/commands/backup.py | 2 +- lib/commands/behat.py | 2 +- lib/commands/fix.py | 2 +- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/command.py b/lib/command.py index ce5c212..df1ecac 100644 --- a/lib/command.py +++ b/lib/command.py @@ -66,12 +66,6 @@ class Command(object): def description(self): return self._description - def resolve(self, name): - return self.Wp.resolve(name) - - def resolveMultiple(self, names): - return self.Wp.resolve(names) - def run(self, args): return True diff --git a/lib/commands/backup.py b/lib/commands/backup.py index 45057fe..60dd10f 100644 --- a/lib/commands/backup.py +++ b/lib/commands/backup.py @@ -129,7 +129,7 @@ class BackupCommand(Command): # Backup the instance else: - M = self.resolve(name) + M = self.Wp.resolve(name) if not M: raise Exception('This is not a Moodle instance') diff --git a/lib/commands/behat.py b/lib/commands/behat.py index 3580ed9..9bdf052 100644 --- a/lib/commands/behat.py +++ b/lib/commands/behat.py @@ -90,7 +90,7 @@ class BehatCommand(Command): def run(self, args): # Loading instance - M = self.resolve(args.name) + M = self.Wp.resolve(args.name) if not M: raise Exception('This is not a Moodle instance') diff --git a/lib/commands/fix.py b/lib/commands/fix.py index d9b350f..97d41f2 100644 --- a/lib/commands/fix.py +++ b/lib/commands/fix.py @@ -58,7 +58,7 @@ class FixCommand(Command): def run(self, args): # Loading instance - M = self.resolve(args.name) + M = self.Wp.resolve(args.name) if not M: raise Exception('This is not a Moodle instance') -- 2.11.0