summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/plugin.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-15 20:13:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-04 10:42:31 +0000
commitefcd07fe17bf55441059b00a5becc3952e0a4075 (patch)
treeaa66f8c3cde177c7a7bd23d23841ae0ae4ecf337 /scripts/lib/wic/plugin.py
parent87031c933047a37ddc26be3d04ea17b6e60ea10a (diff)
downloadopenembedded-core-efcd07fe17bf55441059b00a5becc3952e0a4075.tar.gz
openembedded-core-efcd07fe17bf55441059b00a5becc3952e0a4075.tar.bz2
openembedded-core-efcd07fe17bf55441059b00a5becc3952e0a4075.zip
wic: remove PluginMgr.get_plugin_methods
Call methods directly instead of getting them with get_plugin_methods and then calling. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/plugin.py')
-rw-r--r--scripts/lib/wic/plugin.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/lib/wic/plugin.py b/scripts/lib/wic/plugin.py
index b45478cd9a..36a120bb1c 100644
--- a/scripts/lib/wic/plugin.py
+++ b/scripts/lib/wic/plugin.py
@@ -62,20 +62,3 @@ class PluginMgr:
cls._loaded.append(ppath)
return pluginbase.get_plugins(ptype)
-
- @classmethod
- def get_plugin_methods(cls, ptype, pname, methods):
- """
- The methods param is a dict with the method names to find. On
- return, the dict values will be filled in with pointers to the
- corresponding methods. If one or more methods are not found,
- None is returned.
- """
- result = {}
- plugin = cls.get_plugins(ptype).get(pname)
- for method in methods:
- if not hasattr(plugin, method):
- raise WicError("Unimplemented %s plugin interface for: %s" %
- (method, pname))
- result[method] = getattr(plugin, method)
- return result