]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Remove the unused variable Partition.sourceparams_dict
authorKevin Hao <kexin.hao@windriver.com>
Tue, 14 Aug 2018 01:31:21 +0000 (09:31 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2018 20:45:10 +0000 (21:45 +0100)
We choose to pass the source parameters to the source plugins' hooks
via a local variable srcparams_dict. So the Partition.sourceparams_dict
is not used by anyone and seems pretty confused. So drop it.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/partition.py

index c73af9d4275ef7d581f27eb6c5e28ecc4ed179d8..5054779b1b6b8b4e055c4aaab4ab949e9c88941f 100644 (file)
@@ -66,7 +66,6 @@ class Partition():
 
         self.lineno = lineno
         self.source_file = ""
-        self.sourceparams_dict = {}
 
     def get_extra_block_count(self, current_blocks):
         """