chore: remove unused code

This commit is contained in:
Travis Abendshien
2025-01-07 08:21:12 -08:00
parent c2ab38cbf6
commit 7e1978d8e3
3 changed files with 0 additions and 32 deletions

View File

@@ -206,14 +206,10 @@ class BuildTagPanel(PanelWidget):
"QCheckBox::indicator{"
"width: 19px; height: 19px;"
# f"background: #1e1e1e;"
# # f"color: #FFFFFF;"
# # f"font-weight: bold;"
# f"border-color: #333333;"
# f"border-radius: 6px;"
# f"border-style:solid;"
# f"border-width:{math.ceil(self.devicePixelRatio())}px;"
# f"padding-bottom: 5px;"
# f"font-size: 20p+x;"
"}"
# f"QCheckBox::indicator::hover"
# f"{{"
@@ -234,7 +230,6 @@ class BuildTagPanel(PanelWidget):
self.root_layout.addWidget(self.color_widget)
self.root_layout.addWidget(QLabel("<h3>Properties</h3>"))
self.root_layout.addWidget(self.cat_widget)
# self.parent().done.connect(self.update_tag)
self.parent_ids: set[int] = set()
self.alias_ids: list[int] = []

View File

@@ -293,7 +293,6 @@ class QtDriver(DriverMixin, QObject):
Translations.translate_qobject(
self.open_recent_library_menu, "menu.file.open_recent_library"
)
# open_recent_library_menu.set
file_menu.addMenu(self.open_recent_library_menu)
self.update_recent_lib_menu()
@@ -405,13 +404,6 @@ class QtDriver(DriverMixin, QObject):
show_libs_list_action.setChecked(
bool(self.settings.value(SettingItems.WINDOW_SHOW_LIBS, defaultValue=True, type=bool))
)
show_libs_list_action.triggered.connect(
lambda checked: (
self.settings.setValue(SettingItems.WINDOW_SHOW_LIBS, checked),
self.toggle_libs_list(checked),
)
)
view_menu.addAction(show_libs_list_action)
show_filenames_action = QAction(menu_bar)
Translations.translate_qobject(show_filenames_action, "settings.show_filenames_in_grid")
@@ -593,15 +585,6 @@ class QtDriver(DriverMixin, QObject):
self.splash.finish(self.main_window)
self.preview_panel.update_widgets()
def toggle_libs_list(self, value: bool):
# TODO: Reimplement or remove
# if value:
# self.preview_panel.libs_flow_container.show()
# else:
# self.preview_panel.libs_flow_container.hide()
# self.preview_panel.update()
pass
def show_grid_filenames(self, value: bool):
for thumb in self.item_thumbs:
thumb.set_filename_visibility(value)
@@ -823,21 +806,12 @@ class QtDriver(DriverMixin, QObject):
def new_file_macros_runnable(self, new_ids):
"""Threaded method that runs macros on a set of Entry IDs."""
# sleep(1)
# for i, id in enumerate(new_ids):
# # pb.setValue(i)
# # pb.setLabelText(f'Running Configured Macros on {i}/{len(new_ids)} New Entries')
# # self.run_macro('autofill', id)
# NOTE: I don't know. I don't know why it needs this. The whole program
# falls apart if this method doesn't run, and it DOESN'T DO ANYTHING
yield 0
# self.main_window.statusbar.showMessage('', 3)
# sleep(5)
# pb.deleteLater()
def run_macros(self, name: MacroID, entry_ids: list[int]):
"""Run a specific Macro on a group of given entry_ids."""
for entry_id in entry_ids:

View File

@@ -126,7 +126,6 @@ class PreviewPanel(QWidget):
splitter.addWidget(preview_section)
splitter.addWidget(info_section)
# splitter.addWidget(self.libs_flow_container) # TODO: Determine fate of this; Move to menu
splitter.setStretchFactor(1, 2)
root_layout = QVBoxLayout(self)