From 032a7c9fe26dfbab91ec83baa46d4a6b96878e88 Mon Sep 17 00:00:00 2001 From: "Carsey, Jaben" Date: Sat, 28 Apr 2018 06:32:38 +0800 Subject: [PATCH] BaseTools: AutoGen - remove function no one calls Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey Reviewed-by: Yonghong Zhu --- BaseTools/Source/Python/AutoGen/GenPcdDb.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/BaseTools/Source/Python/AutoGen/GenPcdDb.py b/BaseTools/Source/Python/AutoGen/GenPcdDb.py index d237178c83..5ccdf1ccb7 100644 --- a/BaseTools/Source/Python/AutoGen/GenPcdDb.py +++ b/BaseTools/Source/Python/AutoGen/GenPcdDb.py @@ -261,17 +261,6 @@ def PackGuid(GuidStructureValue): ) return Buffer -def toHex(s): - lst = [] - for ch in s: - hv = hex(ord(ch)).replace('0x', ' ') - if len(hv) == 1: - hv = '0'+hv - lst.append(hv) - if lst: - return reduce(lambda x,y:x+y, lst) - else: - return 'empty' ## DbItemList # # The class holds the Pcd database items. ItemSize if not zero should match the item datum type in the C structure.