summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Table/TableEotReport.py
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2025-04-30 15:59:09 +0300
committerLiming Gao <gaoliming@byosoft.com.cn>2025-07-01 04:51:38 +0300
commitee791006781e821e1d415f15433bfa95b9e83500 (patch)
treeb4a6884e3cd680bbcb3a1e7d836dcd74ee3ba3ea /BaseTools/Source/Python/Table/TableEotReport.py
parentfa2c27514c5923d8a1c7f8cb7b1bf2f3b69c4331 (diff)
downloadedk2-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/TableEotReport.py')
-rw-r--r--BaseTools/Source/Python/Table/TableEotReport.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/BaseTools/Source/Python/Table/TableEotReport.py b/BaseTools/Source/Python/Table/TableEotReport.py
index abd433ec8e..db6660f57a 100644
--- a/BaseTools/Source/Python/Table/TableEotReport.py
+++ b/BaseTools/Source/Python/Table/TableEotReport.py
@@ -62,9 +62,3 @@ class TableEotReport(Table):
% (self.Table, self.ID, ModuleID, ModuleName, ModuleGuid, SourceFileID, SourceFileFullPath, \
ItemName, ItemType, ItemMode, GuidName, GuidMacro, GuidValue, BelongsToFunction, Enabled)
Table.Insert(self, SqlCommand)
-
- def GetMaxID(self):
- SqlCommand = """select max(ID) from %s""" % self.Table
- self.Cur.execute(SqlCommand)
- for Item in self.Cur:
- return Item[0]