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:
Jaben Carsey 2018-08-17 07:24:14 +08:00 committed by Yonghong Zhu
parent 0258ba6256
commit fe6fdfe2bb
1 changed files with 1 additions and 5 deletions

View File

@ -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()