diff options
author | Pierre Gondois <pierre.gondois@arm.com> | 2025-04-30 15:59:09 +0300 |
---|---|---|
committer | Liming Gao <gaoliming@byosoft.com.cn> | 2025-07-01 04:51:38 +0300 |
commit | ee791006781e821e1d415f15433bfa95b9e83500 (patch) | |
tree | b4a6884e3cd680bbcb3a1e7d836dcd74ee3ba3ea /BaseTools/Source/Python/Table/Table.py | |
parent | fa2c27514c5923d8a1c7f8cb7b1bf2f3b69c4331 (diff) | |
download | edk2-ee791006781e821e1d415f15433bfa95b9e83500.tar.xz |
BaseTools: Table: Remove unnecessary code
Running the vulture tool on the Table folder gave the following
report. Remove the unnecessary code.
- Table/Table.py:88:
unused method 'GenerateID' (60% confidence)
- Table/TableDataModel.py:83:
unused method 'GetCrossIndex' (60% confidence)
- Table/TableEotReport.py:66:
unused method 'GetMaxID' (60% confidence)
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/Table/Table.py')
-rw-r--r-- | BaseTools/Source/Python/Table/Table.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/BaseTools/Source/Python/Table/Table.py b/BaseTools/Source/Python/Table/Table.py index 7a60313e95..47ebea6835 100644 --- a/BaseTools/Source/Python/Table/Table.py +++ b/BaseTools/Source/Python/Table/Table.py @@ -77,20 +77,6 @@ class Table(object): for Item in self.Cur:
return Item[0]
- ## Generate ID
- #
- # Generate an ID if input ID is -1
- #
- # @param ID: Input ID
- #
- # @retval ID: New generated ID
- #
- def GenerateID(self, ID):
- if ID == -1:
- self.ID = self.ID + 1
-
- return self.ID
-
## Init the ID of the table
#
# Init the ID of the table
|