BaseTools: remove dict from DscBuildData

the dict is not needed as BaseTools can check the 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:
Carsey, Jaben
2018-04-20 23:51:32 +08:00
committed by Yonghong Zhu
parent dca689d579
commit 1d5fde83d0

View File

@ -1947,13 +1947,11 @@ class DscBuildData(PlatformBuildClassObject):
InitByteValue = "" InitByteValue = ""
CApp = PcdMainCHeader CApp = PcdMainCHeader
Includes = {}
IncludeFiles = set() IncludeFiles = set()
for PcdName in StructuredPcds: for PcdName in StructuredPcds:
Pcd = StructuredPcds[PcdName] Pcd = StructuredPcds[PcdName]
for IncludeFile in Pcd.StructuredPcdIncludeFile: for IncludeFile in Pcd.StructuredPcdIncludeFile:
if IncludeFile not in Includes: if IncludeFile not in IncludeFiles:
Includes[IncludeFile] = True
IncludeFiles.add(IncludeFile) IncludeFiles.add(IncludeFile)
CApp = CApp + '#include <%s>\n' % (IncludeFile) CApp = CApp + '#include <%s>\n' % (IncludeFile)
CApp = CApp + '\n' CApp = CApp + '\n'