[OE-core] [PATCH 7/9] wic: direct: remove unused plugin attributes

Ed Bartosh ed.bartosh at linux.intel.com
Wed Feb 8 18:51:31 UTC 2017


Removed unused _disks, _disk_format and _disk_names
attributes from DirectPlugin class.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 scripts/lib/wic/plugins/imager/direct.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index 663655a..7d6c59a 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -90,9 +90,6 @@ class DirectPlugin(ImagerPlugin):
                                strftime("%Y%m%d%H%M"))
         self.workdir = tempfile.mkdtemp(dir=self.outdir, prefix='tmp.wic.')
         self._image = None
-        self._disks = {}
-        self._disk_format = "direct"
-        self._disk_names = []
         self.ptable_format = self.ks.bootloader.ptable
         self.parts = self.ks.partitions
 
@@ -249,7 +246,6 @@ class DirectPlugin(ImagerPlugin):
             msger.debug("Adding disk %s as %s with size %s bytes" \
                         % (disk_name, full_path, disk['min_size']))
             disk_obj = DiskImage(full_path, disk['min_size'])
-            #self._disks[disk_name] = disk_obj
             self._image.add_disk(disk_name, disk_obj, disk_ids.get(disk_name))
 
         self._image.create()
-- 
2.1.4




More information about the Openembedded-core mailing list