summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Eot
diff options
context:
space:
mode:
authorCarsey, Jaben <jaben.carsey@intel.com>2018-04-28 06:32:25 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-05-04 13:03:02 +0800
commitcdd04623d73924103c22bdaf28e33f3bf5296b58 (patch)
tree775e25cc331d742688066e94f16597b41c07e175 /BaseTools/Source/Python/Eot
parent5373d8a0f9f50d42d812d27384d9487022a70199 (diff)
downloadedk2-cdd04623d73924103c22bdaf28e33f3bf5296b58.tar.gz
edk2-cdd04623d73924103c22bdaf28e33f3bf5296b58.tar.bz2
edk2-cdd04623d73924103c22bdaf28e33f3bf5296b58.zip
BaseTools: Eot - refactor global data
remove unused lists, dicts, and duplicate variables 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/Eot')
-rw-r--r--BaseTools/Source/Python/Eot/Eot.py5
-rw-r--r--BaseTools/Source/Python/Eot/EotGlobalData.py12
2 files changed, 0 insertions, 17 deletions
diff --git a/BaseTools/Source/Python/Eot/Eot.py b/BaseTools/Source/Python/Eot/Eot.py
index 15de822d69..fcde8fd3e2 100644
--- a/BaseTools/Source/Python/Eot/Eot.py
+++ b/BaseTools/Source/Python/Eot/Eot.py
@@ -302,9 +302,6 @@ class Eot(object):
EotGlobalData.gINF_FILES = mFileList
EotGlobalData.gOP_INF.close()
- EotGlobalData.gDEC_FILES = mDecFileList
-
-
## GenerateReport() method
#
# Generate final HTML report
@@ -393,8 +390,6 @@ class Eot(object):
SqlCommand = """select DISTINCT GuidValue, ItemType from Report where ModuleID = -2 and ItemMode = 'Produced'"""
RecordSet = EotGlobalData.gDb.TblReport.Exec(SqlCommand)
for Record in RecordSet:
- if Record[1] == 'Ppi':
- EotGlobalData.gPpiList[Record[0].lower()] = -2
if Record[1] == 'Protocol':
EotGlobalData.gProtocolList[Record[0].lower()] = -2
diff --git a/BaseTools/Source/Python/Eot/EotGlobalData.py b/BaseTools/Source/Python/Eot/EotGlobalData.py
index da224a7ee3..a9f51189c1 100644
--- a/BaseTools/Source/Python/Eot/EotGlobalData.py
+++ b/BaseTools/Source/Python/Eot/EotGlobalData.py
@@ -36,11 +36,6 @@ gMACRO['EDK_SOURCE'] = gEDK_SOURCE
gMACRO['SHELL_INF'] = gSHELL_INF
gMACRO['CAPSULE_INF'] = ''
-gNOT_FOUND_FILES = []
-gSOURCE_FILES = []
-gINF_FILES = {}
-gDEC_FILES = []
-
# Log file for unmatched variables
gUN_MATCHED_LOG = 'Log_UnMatched.log'
gOP_UN_MATCHED = open(gUN_MATCHED_LOG, 'w+')
@@ -61,10 +56,6 @@ gOP_UN_MATCHED_IN_LIBRARY_CALLING = open(gUN_MATCHED_IN_LIBRARY_CALLING_LOG, 'w+
gDISPATCH_ORDER_LOG = 'Log_DispatchOrder.log'
gOP_DISPATCH_ORDER = open(gDISPATCH_ORDER_LOG, 'w+')
-# Log file for source files not found
-gUN_FOUND_FILES = 'Log_UnFoundSourceFiles.log'
-gOP_UN_FOUND_FILES = open(gUN_FOUND_FILES, 'w+')
-
# Log file for found source files
gSOURCE_FILES = 'Log_SourceFiles.log'
gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+')
@@ -72,9 +63,6 @@ gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+')
# Dict for GUID found in DEC files
gGuidDict = dict()
-# Dict for PPI
-gPpiList = {}
-
# Dict for PROTOCOL
gProtocolList = {}