mirror of https://github.com/acidanthera/audk.git
BaseTools: remove unused code
the if statment just has pass statement. invert if condition and just use do the else work. Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@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
0258ba6256
commit
fe6fdfe2bb
|
@ -370,11 +370,7 @@ class InfBuildData(ModuleBuildClassObject):
|
||||||
self._Sources.append(File)
|
self._Sources.append(File)
|
||||||
else:
|
else:
|
||||||
ToolList = self._NMAKE_FLAG_PATTERN_.findall(Name)
|
ToolList = self._NMAKE_FLAG_PATTERN_.findall(Name)
|
||||||
if len(ToolList) == 0 or len(ToolList) != 1:
|
if len(ToolList) == 1:
|
||||||
pass
|
|
||||||
# EdkLogger.warn("build", "Don't know how to do with macro [%s]" % Name,
|
|
||||||
# File=self.MetaFile, Line=LineNo)
|
|
||||||
else:
|
|
||||||
if self._BuildOptions is None:
|
if self._BuildOptions is None:
|
||||||
self._BuildOptions = OrderedDict()
|
self._BuildOptions = OrderedDict()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue