From 3b79d944af602e3c8cc566a68c373ff46c00fc9d Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 1 Nov 2022 11:29:12 +0300 Subject: [PATCH] Removed unused includes of observer file. --- Telegram/SourceFiles/boxes/download_path_box.h | 3 +-- Telegram/SourceFiles/core/file_utilities.h | 2 -- Telegram/SourceFiles/history/history.h | 4 +--- Telegram/SourceFiles/mtproto/mtproto_dc_options.h | 1 - Telegram/SourceFiles/profile/profile_block_widget.h | 1 - Telegram/SourceFiles/storage/file_download.h | 2 -- Telegram/SourceFiles/storage/file_download_web.cpp | 1 + Telegram/SourceFiles/window/notifications_manager.h | 2 +- 8 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Telegram/SourceFiles/boxes/download_path_box.h b/Telegram/SourceFiles/boxes/download_path_box.h index 76b0f0b47..65f7ba7dd 100644 --- a/Telegram/SourceFiles/boxes/download_path_box.h +++ b/Telegram/SourceFiles/boxes/download_path_box.h @@ -7,8 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once -#include "boxes/abstract_box.h" -#include "base/observer.h" +#include "ui/layers/box_content.h" namespace Ui { template diff --git a/Telegram/SourceFiles/core/file_utilities.h b/Telegram/SourceFiles/core/file_utilities.h index 419c2183f..7201f5c83 100644 --- a/Telegram/SourceFiles/core/file_utilities.h +++ b/Telegram/SourceFiles/core/file_utilities.h @@ -7,8 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once -#include "base/observer.h" - namespace Main { class Session; } // namespace Main diff --git a/Telegram/SourceFiles/history/history.h b/Telegram/SourceFiles/history/history.h index b8f4df785..857dc7eeb 100644 --- a/Telegram/SourceFiles/history/history.h +++ b/Telegram/SourceFiles/history/history.h @@ -12,8 +12,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "data/data_drafts.h" #include "data/data_thread.h" #include "history/view/history_view_send_action.h" -#include "base/observer.h" -#include "base/timer.h" #include "base/variant.h" #include "base/flat_set.h" #include "base/flags.h" @@ -47,7 +45,7 @@ struct ForwardDraft { MessageIdsList ids; ForwardOptions options = ForwardOptions::PreserveInfo; - friend inline constexpr auto operator<=>( + friend inline auto operator<=>( const ForwardDraft&, const ForwardDraft&) = default; }; diff --git a/Telegram/SourceFiles/mtproto/mtproto_dc_options.h b/Telegram/SourceFiles/mtproto/mtproto_dc_options.h index 26c6e0861..4e0b979c4 100644 --- a/Telegram/SourceFiles/mtproto/mtproto_dc_options.h +++ b/Telegram/SourceFiles/mtproto/mtproto_dc_options.h @@ -7,7 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once -#include "base/observer.h" #include "base/bytes.h" #include diff --git a/Telegram/SourceFiles/profile/profile_block_widget.h b/Telegram/SourceFiles/profile/profile_block_widget.h index 7bf06269f..68c6ecbf5 100644 --- a/Telegram/SourceFiles/profile/profile_block_widget.h +++ b/Telegram/SourceFiles/profile/profile_block_widget.h @@ -7,7 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once -#include "base/observer.h" #include "ui/rp_widget.h" namespace Profile { diff --git a/Telegram/SourceFiles/storage/file_download.h b/Telegram/SourceFiles/storage/file_download.h index d859cc689..ece3fef25 100644 --- a/Telegram/SourceFiles/storage/file_download.h +++ b/Telegram/SourceFiles/storage/file_download.h @@ -7,8 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once -#include "base/observer.h" -#include "base/timer.h" #include "base/binary_guard.h" #include "base/weak_ptr.h" diff --git a/Telegram/SourceFiles/storage/file_download_web.cpp b/Telegram/SourceFiles/storage/file_download_web.cpp index b1668a093..c9f58afc7 100644 --- a/Telegram/SourceFiles/storage/file_download_web.cpp +++ b/Telegram/SourceFiles/storage/file_download_web.cpp @@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "storage/cache/storage_cache_types.h" #include "base/qt/qt_common_adapters.h" +#include "base/timer.h" #include "base/weak_ptr.h" #include diff --git a/Telegram/SourceFiles/window/notifications_manager.h b/Telegram/SourceFiles/window/notifications_manager.h index 6a1dbdeb0..517636040 100644 --- a/Telegram/SourceFiles/window/notifications_manager.h +++ b/Telegram/SourceFiles/window/notifications_manager.h @@ -8,8 +8,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #pragma once #include "data/data_message_reaction_id.h" -#include "base/observer.h" #include "base/timer.h" +#include "base/type_traits.h" class History;