From 2fc9fd5887b0691d6426b0b5107ca8da77eee288 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 26 Sep 2019 10:15:41 +0300 Subject: [PATCH] Remove some unused code. --- Telegram/SourceFiles/platform/linux/main_window_linux.cpp | 8 -------- Telegram/SourceFiles/platform/linux/main_window_linux.h | 5 ----- Telegram/SourceFiles/platform/mac/main_window_mac.h | 5 ----- Telegram/SourceFiles/platform/mac/main_window_mac.mm | 8 -------- 4 files changed, 26 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index 0a2cad531..e3a60a92f 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -585,8 +585,6 @@ void MainWindow::psFirstShow() { LOG(("Not using Unity Launcher count.")); } - psUpdateMargins(); - bool showShadows = true; show(); @@ -611,12 +609,6 @@ void MainWindow::psFirstShow() { setPositionInited(); } -void MainWindow::psInitSysMenu() { -} - -void MainWindow::psUpdateMargins() { -} - MainWindow::~MainWindow() { #ifndef TDESKTOP_DISABLE_GTK_INTEGRATION if (_trayIcon) { diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.h b/Telegram/SourceFiles/platform/linux/main_window_linux.h index cea307c5e..bc7eb98c1 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.h +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.h @@ -20,11 +20,6 @@ public: explicit MainWindow(not_null controller); void psFirstShow(); - void psInitSysMenu(); - void psUpdateMargins(); - - void psRefreshTaskbarIcon() { - } virtual QImage iconWithCounter(int size, int count, style::color bg, style::color fg, bool smallIcon) = 0; diff --git a/Telegram/SourceFiles/platform/mac/main_window_mac.h b/Telegram/SourceFiles/platform/mac/main_window_mac.h index 967ea8168..933c0e84c 100644 --- a/Telegram/SourceFiles/platform/mac/main_window_mac.h +++ b/Telegram/SourceFiles/platform/mac/main_window_mac.h @@ -24,11 +24,6 @@ public: explicit MainWindow(not_null controller); void psFirstShow(); - void psInitSysMenu(); - void psUpdateMargins(); - - void psRefreshTaskbarIcon() { - } bool psFilterNativeEvent(void *event); diff --git a/Telegram/SourceFiles/platform/mac/main_window_mac.mm b/Telegram/SourceFiles/platform/mac/main_window_mac.mm index 487970e34..a67c278e4 100644 --- a/Telegram/SourceFiles/platform/mac/main_window_mac.mm +++ b/Telegram/SourceFiles/platform/mac/main_window_mac.mm @@ -635,8 +635,6 @@ void MainWindow::updateIconCounters() { } void MainWindow::psFirstShow() { - psUpdateMargins(); - bool showShadows = true; show(); @@ -775,12 +773,6 @@ void MainWindow::psMacClearFormat() { SendKeySequence(Qt::Key_N, Qt::ControlModifier | Qt::ShiftModifier); } -void MainWindow::psInitSysMenu() { -} - -void MainWindow::psUpdateMargins() { -} - void MainWindow::updateGlobalMenuHook() { if (!App::wnd() || !positionInited()) return;