BaseTools: remove unused variables

some were populated, but never used after.
some were never used.

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-06 07:13:54 +08:00 committed by Yonghong Zhu
parent 6b26dd7165
commit d98cce8e63
1 changed files with 1 additions and 10 deletions

View File

@ -1388,8 +1388,6 @@ class PlatformAutoGen(AutoGen):
# for gathering error information # for gathering error information
NoDatumTypePcdList = set() NoDatumTypePcdList = set()
PcdNotInDb = []
self._GuidValue = {}
FdfModuleList = [] FdfModuleList = []
for InfName in self._AsBuildInfList: for InfName in self._AsBuildInfList:
InfName = mws.join(self.WorkspaceDir, InfName) InfName = mws.join(self.WorkspaceDir, InfName)
@ -1427,8 +1425,6 @@ class PlatformAutoGen(AutoGen):
if PcdFromModule.Type in GenC.gDynamicPcd and \ if PcdFromModule.Type in GenC.gDynamicPcd and \
PcdFromModule.IsFromBinaryInf == False: PcdFromModule.IsFromBinaryInf == False:
# Print warning message to let the developer make a determine. # Print warning message to let the developer make a determine.
if PcdFromModule not in PcdNotInDb:
PcdNotInDb.append(PcdFromModule)
continue continue
# If one of the Source built modules listed in the DSC is not listed in # If one of the Source built modules listed in the DSC is not listed in
# FDF modules, and the INF lists a PCD can only use the PcdsDynamicEx # FDF modules, and the INF lists a PCD can only use the PcdsDynamicEx
@ -1436,8 +1432,6 @@ class PlatformAutoGen(AutoGen):
# PCD as PcdsDynamicEx), then DO NOT break the build; DO NOT add the # PCD as PcdsDynamicEx), then DO NOT break the build; DO NOT add the
# PCD to the Platform's PCD Database. # PCD to the Platform's PCD Database.
if PcdFromModule.Type in GenC.gDynamicExPcd: if PcdFromModule.Type in GenC.gDynamicExPcd:
if PcdFromModule not in PcdNotInDb:
PcdNotInDb.append(PcdFromModule)
continue continue
# #
# If a dynamic PCD used by a PEM module/PEI module & DXE module, # If a dynamic PCD used by a PEM module/PEI module & DXE module,
@ -1918,7 +1912,6 @@ class PlatformAutoGen(AutoGen):
self._ToolDefinitions[Tool][Attr] = Value self._ToolDefinitions[Tool][Attr] = Value
ToolsDef = '' ToolsDef = ''
MakePath = ''
if GlobalData.gOptions.SilentMode and "MAKE" in self._ToolDefinitions: if GlobalData.gOptions.SilentMode and "MAKE" in self._ToolDefinitions:
if "FLAGS" not in self._ToolDefinitions["MAKE"]: if "FLAGS" not in self._ToolDefinitions["MAKE"]:
self._ToolDefinitions["MAKE"]["FLAGS"] = "" self._ToolDefinitions["MAKE"]["FLAGS"] = ""
@ -1939,9 +1932,7 @@ class PlatformAutoGen(AutoGen):
if Attr == "PATH": if Attr == "PATH":
# Don't put MAKE definition in the file # Don't put MAKE definition in the file
if Tool == "MAKE": if Tool != "MAKE":
MakePath = Value
else:
ToolsDef += "%s = %s\n" % (Tool, Value) ToolsDef += "%s = %s\n" % (Tool, Value)
elif Attr != "DLL": elif Attr != "DLL":
# Don't put MAKE definition in the file # Don't put MAKE definition in the file