summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorCarsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben>2018-04-14 04:51:30 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-04-17 20:49:52 +0800
commita6c910e3583c0124e4ba0d42004003fff036e160 (patch)
tree1a68a3c5ea983367cfd5b5a3812114eeff38a2ea /BaseTools
parent820a98a46317e82ef8bb586abaf69da1bbf1d6a5 (diff)
downloadedk2-a6c910e3583c0124e4ba0d42004003fff036e160.tar.gz
edk2-a6c910e3583c0124e4ba0d42004003fff036e160.tar.bz2
edk2-a6c910e3583c0124e4ba0d42004003fff036e160.zip
BaseTools: Remove unused functions from DscBuildData
3 functions were never called: _dumpPcdInfo __STRING2OCTList __UNICODE2OCTList Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@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')
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index 70e0eb85a7..2cc920696d 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -1141,17 +1141,6 @@ class DscBuildData(PlatformBuildClassObject):
self.RecoverCommandLinePcd()
return self._Pcds
- def _dumpPcdInfo(self,Pcds):
- for pcd in Pcds:
- pcdobj = Pcds[pcd]
- if not pcdobj.TokenCName.startswith("Test"):
- continue
- for skuid in pcdobj.SkuInfoList:
- if pcdobj.Type in (self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC_HII],self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC_EX_HII]):
- for storename in pcdobj.SkuInfoList[skuid].DefaultStoreDict:
- print "PcdCName: %s, SkuName: %s, StoreName: %s, Value: %s" % (".".join((pcdobj.TokenSpaceGuidCName, pcdobj.TokenCName)), skuid,storename,str(pcdobj.SkuInfoList[skuid].DefaultStoreDict[storename]))
- else:
- print "PcdCName: %s, SkuName: %s, Value: %s" % (".".join((pcdobj.TokenSpaceGuidCName, pcdobj.TokenCName)), skuid,str(pcdobj.SkuInfoList[skuid].DefaultValue))
## Retrieve [BuildOptions]
def _GetBuildOptions(self):
if self._BuildOptions is None:
@@ -1507,26 +1496,6 @@ class DscBuildData(PlatformBuildClassObject):
return Pcds
- def __UNICODE2OCTList(self,Value):
- Value = Value.strip()
- Value = Value[2:-1]
- List = []
- for Item in Value:
- Temp = '%04X' % ord(Item)
- List.append('0x' + Temp[2:4])
- List.append('0x' + Temp[0:2])
- List.append('0x00')
- List.append('0x00')
- return List
- def __STRING2OCTList(self,Value):
- OCTList = []
- Value = Value.strip('"')
- for char in Value:
- Temp = '%02X' % ord(char)
- OCTList.append('0x' + Temp)
- OCTList.append('0x00')
- return OCTList
-
def GetStructurePcdMaxSize(self, str_pcd):
pcd_default_value = str_pcd.DefaultValue
sku_values = [skuobj.HiiDefaultValue if str_pcd.Type in [self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC_HII], self._PCD_TYPE_STRING_[MODEL_PCD_DYNAMIC_EX_HII]] else skuobj.DefaultValue for skuobj in str_pcd.SkuInfoList.values()]