summaryrefslogtreecommitdiff
path: root/scripts/lib/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-08 20:51:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-15 20:06:33 -0800
commit178df49cf1674bfcf1cb7295d0494c3b23929d22 (patch)
tree68f9bac82d890ee9661cea7f24146cbf0f63e7cd /scripts/lib/wic
parent702772edc839c220140ac0572bb14b4e44c81c1c (diff)
downloadopenembedded-core-178df49cf1674bfcf1cb7295d0494c3b23929d22.tar.gz
openembedded-core-178df49cf1674bfcf1cb7295d0494c3b23929d22.tar.bz2
openembedded-core-178df49cf1674bfcf1cb7295d0494c3b23929d22.zip
wic: direct: remove unused plugin attributes
Removed unused _disks, _disk_format and _disk_names attributes from DirectPlugin class. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index 663655a03c..7d6c59ae58 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()