[oe-commits] Ed Bartosh : wic: code cleanup: remove unused code

git at git.openembedded.org git at git.openembedded.org
Sun Aug 9 07:20:43 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 7d87c821da6a5020e8dde3f1907fb8d6a023b110
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7d87c821da6a5020e8dde3f1907fb8d6a023b110

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Mon Aug  3 16:51:49 2015 +0300

wic: code cleanup: remove unused code

Removed unused global variable wks_vars and 2 unused functions
get_wks_var and add_wks_var.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/lib/wic/utils/oe/misc.py | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index af831d3..0fa8a53 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -120,17 +120,6 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3):
 
     return (rc, out)
 
-# kickstart doesn't support variable substution in commands, so this
-# is our current simplistic scheme for supporting that
-
-wks_vars = dict()
-
-def get_wks_var(key):
-    return wks_vars[key]
-
-def add_wks_var(key, val):
-    wks_vars[key] = val
-
 BOOTDD_EXTRA_SPACE = 16384
 
 _BITBAKE_VARS = defaultdict(dict)



More information about the Openembedded-commits mailing list