From efcd07fe17bf55441059b00a5becc3952e0a4075 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 15 Feb 2017 20:13:41 +0200 Subject: 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 --- scripts/lib/wic/plugin.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'scripts/lib/wic/plugin.py') 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 -- cgit v1.2.3