From c54117458a19d05d404ec00907a8f3e9c73a416b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 8 Nov 2009 22:32:43 +0000 Subject: classes: Remove and sanitise import statements Signed-off-by: Richard Purdie --- meta/classes/image.bbclass | 4 ---- 1 file changed, 4 deletions(-) (limited to 'meta/classes/image.bbclass') diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 6b0a14d9a..c5a2dd2c5 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -26,8 +26,6 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" do_rootfs[depends] += "makedevs-native:do_populate_staging fakeroot-native:do_populate_staging ldconfig-native:do_populate_staging" python () { - import bb - deps = bb.data.getVarFlag('do_rootfs', 'depends', d) or "" for type in (bb.data.getVar('IMAGE_FSTYPES', d, True) or "").split(): for dep in ((bb.data.getVar('IMAGE_DEPENDS_%s' % type, d) or "").split() or []): @@ -49,7 +47,6 @@ python () { # is searched for in the BBPATH (same as the old version.) # def get_devtable_list(d): - import bb devtable = bb.data.getVar('IMAGE_DEVICE_TABLE', d, 1) if devtable != None: return devtable @@ -62,7 +59,6 @@ def get_devtable_list(d): return str def get_imagecmds(d): - import bb cmds = "\n" old_overrides = bb.data.getVar('OVERRIDES', d, 0) for type in bb.data.getVar('IMAGE_FSTYPES', d, True).split(): -- cgit v1.2.3