diff options
author | Carsey, Jaben <jaben.carsey@intel.com> | 2018-08-29 22:42:21 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-08-30 21:05:18 +0800 |
commit | f5f4667dae711a7e34c75a4cd8f7a683c732a566 (patch) | |
tree | 2481cbd594a90b833dee24bdae8410aa3d2aef75 /BaseTools/Source/Python/Workspace/InfBuildData.py | |
parent | 0fece18d6df83cede91a4c8644c2278e63794a62 (diff) | |
download | edk2-f5f4667dae711a7e34c75a4cd8f7a683c732a566.tar.gz edk2-f5f4667dae711a7e34c75a4cd8f7a683c732a566.tar.bz2 edk2-f5f4667dae711a7e34c75a4cd8f7a683c732a566.zip |
BaseTools: Refactor to remove functionally equivalent functions
IsSupportedArch and IsBinaryModule return the same value under the same
curcimstances. Remove newer one with fewer callers and send them to the
other function.
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.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/BaseTools/Source/Python/Workspace/InfBuildData.py b/BaseTools/Source/Python/Workspace/InfBuildData.py index 1325b4f029..d666c092a6 100644 --- a/BaseTools/Source/Python/Workspace/InfBuildData.py +++ b/BaseTools/Source/Python/Workspace/InfBuildData.py @@ -578,12 +578,7 @@ class InfBuildData(ModuleBuildClassObject): EdkLogger.error('build', RESOURCE_NOT_AVAILABLE, ExtraData=ErrorInfo, File=self.MetaFile)
return Binaries
- ## Check whether it exists the binaries with current ARCH in AsBuild INF
- def _IsSupportedArch(self):
- if self._GetBinaries() and not self._GetSourceFiles():
- return True
- else:
- return False
+
## Retrieve source files
def _GetSourceFiles(self):
# Ignore all source files in a binary build mode
@@ -1170,4 +1165,3 @@ class InfBuildData(ModuleBuildClassObject): Depex = property(_GetDepex)
DepexExpression = property(_GetDepexExpression)
IsBinaryModule = property(_IsBinaryModule)
- IsSupportedArch = property(_IsSupportedArch)
|