]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/GenPcdDb.py
BaseTools: Collect DynamicHii PCD values and assign it to VPD PCD Value
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / GenPcdDb.py
index ddbfe281b857cf5604619fdf952561173ac2007a..40743d1fd64e957df461f2ced89ff39ebd52600d 100644 (file)
@@ -628,31 +628,6 @@ def GetMatchedIndex(Key1, List1, Key2, List2):
     return -1\r
 \r
 \r
-##  Get the integer value from string like "14U" or integer like 2\r
-#\r
-#   @param      Input   The object that may be either a integer value or a string \r
-#  \r
-#   @retval     Value    The integer value that the input represents\r
-#\r
-def GetIntegerValue(Input):\r
-    if type(Input) in (int, long):\r
-        return Input\r
-    String = Input\r
-    if String.endswith("U"):\r
-        String = String[:-1]\r
-    if String.endswith("ULL"):\r
-        String = String[:-3]\r
-    if String.endswith("LL"):\r
-        String = String[:-2]\r
-    \r
-    if String.startswith("0x") or String.startswith("0X"):\r
-        return int(String, 16)\r
-    elif String == '':\r
-        return 0\r
-    else:\r
-        return int(String)\r
-\r
-\r
 ## convert StringArray like {0x36, 0x00, 0x34, 0x00, 0x21, 0x00, 0x36, 0x00, 0x34, 0x00, 0x00, 0x00}\r
 # to List like [0x36, 0x00, 0x34, 0x00, 0x21, 0x00, 0x36, 0x00, 0x34, 0x00, 0x00, 0x00]\r
 #\r