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/TableDataModel.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/TableDataModel.py')
-rw-r--r-- | BaseTools/Source/Python/Table/TableDataModel.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/BaseTools/Source/Python/Table/TableDataModel.py b/BaseTools/Source/Python/Table/TableDataModel.py index 3855807452..7d1d7ed3db 100644 --- a/BaseTools/Source/Python/Table/TableDataModel.py +++ b/BaseTools/Source/Python/Table/TableDataModel.py @@ -72,19 +72,3 @@ class TableDataModel(Table): Description = Item[0]
self.Insert(CrossIndex, Name, Description)
EdkLogger.verbose("Initialize table DataModel ... DONE!")
-
- ## Get CrossIndex
- #
- # Get a model's cross index from its name
- #
- # @param ModelName: Name of the model
- # @retval CrossIndex: CrossIndex of the model
- #
- def GetCrossIndex(self, ModelName):
- CrossIndex = -1
- SqlCommand = """select CrossIndex from DataModel where name = '""" + ModelName + """'"""
- self.Cur.execute(SqlCommand)
- for Item in self.Cur:
- CrossIndex = Item[0]
-
- return CrossIndex
|