From 8f32dbacf9f416a98e4284c4659a6e5e85ff02f6 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Wed, 8 Nov 2023 14:01:31 +0100 Subject: [PATCH] Remove dead code --- src/gui/application.cpp | 7 ------- src/gui/application.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index d625252a763..5ac1b9373cf 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -252,13 +252,6 @@ void Application::openVirtualFile(const QString &filename) }); } -void Application::tryTrayAgain() -{ - qCInfo(lcApplication) << "Trying tray icon, tray available:" << QSystemTrayIcon::isSystemTrayAvailable(); - if (!_gui->contextMenuVisible()) - _gui->hideAndShowTray(); -} - bool Application::eventFilter(QObject *obj, QEvent *event) { #ifdef Q_OS_MAC diff --git a/src/gui/application.h b/src/gui/application.h index a897d761236..6f3608c250e 100644 --- a/src/gui/application.h +++ b/src/gui/application.h @@ -65,9 +65,6 @@ public slots: */ void openVirtualFile(const QString &filename); - /// Attempt to show() the tray icon again. Used if no systray was available initially. - void tryTrayAgain(); - protected: bool eventFilter(QObject *obj, QEvent *event) override;