From 50d4aae1880509917c260ef369a8ea42182abdac Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 9 Jan 2021 03:51:53 -0400 Subject: [PATCH] Remove unused ExitRequested pyotherside event --- src/backend/pyotherside_events.py | 7 ------- src/gui/PythonBridge/EventHandlers.qml | 4 ---- 2 files changed, 11 deletions(-) diff --git a/src/backend/pyotherside_events.py b/src/backend/pyotherside_events.py index 6f283db9..30dfbec7 100644 --- a/src/backend/pyotherside_events.py +++ b/src/backend/pyotherside_events.py @@ -29,13 +29,6 @@ class PyOtherSideEvent: pyotherside.send(type(self).__name__, *args) -@dataclass -class ExitRequested(PyOtherSideEvent): - """Request for the application to exit.""" - - exit_code: int = 0 - - @dataclass class NotificationRequested(PyOtherSideEvent): """Request a notification and window manager alert to be shown. diff --git a/src/gui/PythonBridge/EventHandlers.qml b/src/gui/PythonBridge/EventHandlers.qml index 4686d4c2..e6b801db 100644 --- a/src/gui/PythonBridge/EventHandlers.qml +++ b/src/gui/PythonBridge/EventHandlers.qml @@ -8,10 +8,6 @@ import ".." QtObject { signal deviceUpdateSignal(string forAccount) - function onExitRequested(exitCode) { - Qt.exit(exitCode) - } - function onNotificationRequested(id, title, body, image, highImportance) { const level = window.notificationLevel