From 69fc2f48bf2de925e9a2677938c8301955f0d71e Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 22 Aug 2024 17:21:11 +0300 Subject: [PATCH] Removed unused include directives from MainWidget. --- Telegram/SourceFiles/api/api_bot.cpp | 1 + .../SourceFiles/core/click_handler_types.cpp | 1 + Telegram/SourceFiles/mainwidget.cpp | 1 + Telegram/SourceFiles/mainwidget.h | 24 +++---------------- 4 files changed, 6 insertions(+), 21 deletions(-) diff --git a/Telegram/SourceFiles/api/api_bot.cpp b/Telegram/SourceFiles/api/api_bot.cpp index 7514121eb..dc5cfabb8 100644 --- a/Telegram/SourceFiles/api/api_bot.cpp +++ b/Telegram/SourceFiles/api/api_bot.cpp @@ -15,6 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "boxes/url_auth_box.h" #include "boxes/peers/choose_peer_box.h" #include "lang/lang_keys.h" +#include "chat_helpers/bot_command.h" #include "core/core_cloud_password.h" #include "core/click_handler_types.h" #include "data/data_changes.h" diff --git a/Telegram/SourceFiles/core/click_handler_types.cpp b/Telegram/SourceFiles/core/click_handler_types.cpp index b1ba3d166..10152d6cd 100644 --- a/Telegram/SourceFiles/core/click_handler_types.cpp +++ b/Telegram/SourceFiles/core/click_handler_types.cpp @@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "core/click_handler_types.h" #include "lang/lang_keys.h" +#include "chat_helpers/bot_command.h" #include "core/application.h" #include "core/local_url_handlers.h" #include "mainwidget.h" diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 329fdce2a..3e01faf4e 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -43,6 +43,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "window/window_controller.h" #include "window/window_peer_menu.h" #include "window/themes/window_theme.h" +#include "chat_helpers/bot_command.h" #include "chat_helpers/tabbed_selector.h" // TabbedSelector::refreshStickers #include "chat_helpers/message_field.h" #include "info/info_memento.h" diff --git a/Telegram/SourceFiles/mainwidget.h b/Telegram/SourceFiles/mainwidget.h index bd9f597fc..1b4e1e196 100644 --- a/Telegram/SourceFiles/mainwidget.h +++ b/Telegram/SourceFiles/mainwidget.h @@ -8,25 +8,16 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #pragma once #include "base/weak_ptr.h" -#include "chat_helpers/bot_command.h" #include "media/player/media_player_float.h" #include "mtproto/sender.h" -struct HistoryMessageMarkupButton; -class MainWindow; class HistoryWidget; class StackItem; -class History; class Image; -namespace MTP { -class Error; -} // namespace MTP - -namespace Api { -struct SendAction; -struct SendOptions; -} // namespace Api +namespace Bot { +struct SendCommandRequest; +} // namespace Bot namespace SendMenu { struct Details; @@ -68,10 +59,8 @@ struct Content; namespace Ui { class ChatTheme; -class ConfirmBox; class ResizeArea; class PlainShadow; -class DropdownMenu; enum class ReportReason; template class SlideWrap; @@ -83,7 +72,6 @@ template class TopBarWrapWidget; class SectionMemento; class SectionWidget; -class AbstractSectionWidget; class SlideAnimation; class ConnectionState; struct SectionSlideParams; @@ -103,12 +91,6 @@ namespace Core { class Changelogs; } // namespace Core -namespace InlineBots { -namespace Layout { -class ItemBase; -} // namespace Layout -} // namespace InlineBots - class MainWidget final : public Ui::RpWidget , private Media::Player::FloatDelegate {