mirror of https://github.com/acidanthera/audk.git
BaseTools: replace a dict with a set
As we never use the values, just keep the keys in a set. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
b74b419a01
commit
6b26dd7165
|
@ -544,11 +544,11 @@ class WorkspaceAutoGen(AutoGen):
|
|||
ModuleData = self.BuildDatabase[ModuleFile, Arch, Target, Toolchain]
|
||||
PkgSet.update(ModuleData.Packages)
|
||||
Pkgs = list(PkgSet) + list(PGen.PackageList)
|
||||
DecPcds = {}
|
||||
DecPcds = set()
|
||||
DecPcdsKey = set()
|
||||
for Pkg in Pkgs:
|
||||
for Pcd in Pkg.Pcds:
|
||||
DecPcds[Pcd[0], Pcd[1]] = Pkg.Pcds[Pcd]
|
||||
DecPcds.add((Pcd[0], Pcd[1]))
|
||||
DecPcdsKey.add((Pcd[0], Pcd[1], Pcd[2]))
|
||||
|
||||
Platform.SkuName = self.SkuId
|
||||
|
|
Loading…
Reference in New Issue