]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: remove unused code
authorJaben Carsey <jaben.carsey@intel.com>
Thu, 16 Aug 2018 23:24:14 +0000 (07:24 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 20 Aug 2018 03:16:03 +0000 (11:16 +0800)
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>
BaseTools/Source/Python/Workspace/InfBuildData.py

index 29e68aeb3bf38c67645a35e286c76c82ed19d302..44eaebf62e50a5ad6ff66502c579f870fb150a11 100644 (file)
@@ -370,11 +370,7 @@ class InfBuildData(ModuleBuildClassObject):
                     self._Sources.append(File)\r
                 else:\r
                     ToolList = self._NMAKE_FLAG_PATTERN_.findall(Name)\r
                     self._Sources.append(File)\r
                 else:\r
                     ToolList = self._NMAKE_FLAG_PATTERN_.findall(Name)\r
-                    if len(ToolList) == 0 or len(ToolList) != 1:\r
-                        pass\r
-#                        EdkLogger.warn("build", "Don't know how to do with macro [%s]" % Name,\r
-#                                       File=self.MetaFile, Line=LineNo)\r
-                    else:\r
+                    if len(ToolList) == 1:\r
                         if self._BuildOptions is None:\r
                             self._BuildOptions = OrderedDict()\r
 \r
                         if self._BuildOptions is None:\r
                             self._BuildOptions = OrderedDict()\r
 \r