diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-04-20 23:51:32 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-04-26 14:43:26 +0800 |
commit | 1d5fde83d04df8b786124fd577dd3e3ff25525fe (patch) | |
tree | ed1feafc6aec101951459125fed1ba43c605e2de /BaseTools/Source/Python/Workspace/DscBuildData.py | |
parent | dca689d579ac0eaa6f87d62eabe8d8239b2113d8 (diff) | |
download | edk2-1d5fde83d04df8b786124fd577dd3e3ff25525fe.tar.gz edk2-1d5fde83d04df8b786124fd577dd3e3ff25525fe.tar.bz2 edk2-1d5fde83d04df8b786124fd577dd3e3ff25525fe.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DscBuildData.py')
-rw-r--r-- | BaseTools/Source/Python/Workspace/DscBuildData.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py index fdf20f9b09..335267ebc5 100644 --- a/BaseTools/Source/Python/Workspace/DscBuildData.py +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py @@ -1947,13 +1947,11 @@ class DscBuildData(PlatformBuildClassObject): InitByteValue = ""
CApp = PcdMainCHeader
- Includes = {}
IncludeFiles = set()
for PcdName in StructuredPcds:
Pcd = StructuredPcds[PcdName]
for IncludeFile in Pcd.StructuredPcdIncludeFile:
- if IncludeFile not in Includes:
- Includes[IncludeFile] = True
+ if IncludeFile not in IncludeFiles:
IncludeFiles.add(IncludeFile)
CApp = CApp + '#include <%s>\n' % (IncludeFile)
CApp = CApp + '\n'
|