diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-02-08 20:51:31 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-15 20:06:44 -0800 |
commit | 348c9c50c1d0fe88705e2f9e40ca22a3dd7db1fe (patch) | |
tree | 07ce46cf08dcfb99c7e281b5e22672b6f3748004 /scripts/lib/wic/plugins | |
parent | a9be5de4a169a6fed66a8ffe7f662947516e4b89 (diff) | |
download | poky-348c9c50c1d0fe88705e2f9e40ca22a3dd7db1fe.tar.gz |
wic: direct: remove unused plugin attributes
Removed unused _disks, _disk_format and _disk_names
attributes from DirectPlugin class.
(From OE-Core rev: 178df49cf1674bfcf1cb7295d0494c3b23929d22)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 4 |
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): | |||
90 | strftime("%Y%m%d%H%M")) | 90 | strftime("%Y%m%d%H%M")) |
91 | self.workdir = tempfile.mkdtemp(dir=self.outdir, prefix='tmp.wic.') | 91 | self.workdir = tempfile.mkdtemp(dir=self.outdir, prefix='tmp.wic.') |
92 | self._image = None | 92 | self._image = None |
93 | self._disks = {} | ||
94 | self._disk_format = "direct" | ||
95 | self._disk_names = [] | ||
96 | self.ptable_format = self.ks.bootloader.ptable | 93 | self.ptable_format = self.ks.bootloader.ptable |
97 | self.parts = self.ks.partitions | 94 | self.parts = self.ks.partitions |
98 | 95 | ||
@@ -249,7 +246,6 @@ class DirectPlugin(ImagerPlugin): | |||
249 | msger.debug("Adding disk %s as %s with size %s bytes" \ | 246 | msger.debug("Adding disk %s as %s with size %s bytes" \ |
250 | % (disk_name, full_path, disk['min_size'])) | 247 | % (disk_name, full_path, disk['min_size'])) |
251 | disk_obj = DiskImage(full_path, disk['min_size']) | 248 | disk_obj = DiskImage(full_path, disk['min_size']) |
252 | #self._disks[disk_name] = disk_obj | ||
253 | self._image.add_disk(disk_name, disk_obj, disk_ids.get(disk_name)) | 249 | self._image.add_disk(disk_name, disk_obj, disk_ids.get(disk_name)) |
254 | 250 | ||
255 | self._image.create() | 251 | self._image.create() |