summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/InfBuildData.py
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2018-08-17 07:24:14 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-08-20 11:16:03 +0800
commitfe6fdfe2bb015bbd64c45c5d6ae028ecdf2437e2 (patch)
treea1a3de7c1fdf08214b4dee21c08fa7fd96660c63 /BaseTools/Source/Python/Workspace/InfBuildData.py
parent0258ba6256ca193e8fd896a40ceef1bc06a3e0e8 (diff)
downloadedk2-fe6fdfe2bb015bbd64c45c5d6ae028ecdf2437e2.tar.gz
edk2-fe6fdfe2bb015bbd64c45c5d6ae028ecdf2437e2.tar.bz2
edk2-fe6fdfe2bb015bbd64c45c5d6ae028ecdf2437e2.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/InfBuildData.py')
-rw-r--r--BaseTools/Source/Python/Workspace/InfBuildData.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/BaseTools/Source/Python/Workspace/InfBuildData.py b/BaseTools/Source/Python/Workspace/InfBuildData.py
index 29e68aeb3b..44eaebf62e 100644
--- a/BaseTools/Source/Python/Workspace/InfBuildData.py
+++ b/BaseTools/Source/Python/Workspace/InfBuildData.py
@@ -370,11 +370,7 @@ class InfBuildData(ModuleBuildClassObject):
self._Sources.append(File)
else:
ToolList = self._NMAKE_FLAG_PATTERN_.findall(Name)
- if len(ToolList) == 0 or len(ToolList) != 1:
- pass
-# EdkLogger.warn("build", "Don't know how to do with macro [%s]" % Name,
-# File=self.MetaFile, Line=LineNo)
- else:
+ if len(ToolList) == 1:
if self._BuildOptions is None:
self._BuildOptions = OrderedDict()