From 09f8b7bba83720f1a05b405ad8846a96ea2989ec Mon Sep 17 00:00:00 2001 From: Roland W-H Date: Mon, 28 Apr 2025 12:54:07 +0100 Subject: [PATCH] remove unused code --- src/db_handler.py | 5 ----- src/platform_edit.py | 1 - 2 files changed, 6 deletions(-) diff --git a/src/db_handler.py b/src/db_handler.py index baaaaf6..7d89324 100644 --- a/src/db_handler.py +++ b/src/db_handler.py @@ -243,11 +243,6 @@ class DBHandler: return user_details_dict - # Toggle whether fees for this platform should be calculated - def toggle_platform_state(self, index: int, state: bool): - self.cur.execute("UPDATE tblPlatforms SET IsEnabled = ? WHERE PlatformID = ?", [state, index]) - self.conn.commit() - # Remove a platform from the DB - update the IDs to keep them sequential def remove_platform(self, index: int): tbl_list = ["tblPlatforms", "tblFlatPlatFees", "tblFlatDealFees", "tblFundPlatFee"] diff --git a/src/platform_edit.py b/src/platform_edit.py index 4ff38b6..a6ae271 100644 --- a/src/platform_edit.py +++ b/src/platform_edit.py @@ -18,7 +18,6 @@ class PlatformEdit(QDialog): # Initialise class variables self.plat = plat - self.fund_plat_fee = self.plat.fund_plat_fee self.widgets_list_list = [] if len(self.plat.fund_plat_fee[0]) > 1: self.fund_fee_rows = len(self.plat.fund_plat_fee[0]) - 1