From c684471b3728afb1050f3aadef532a018ca6d7df Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 22 Oct 2024 18:29:22 +0300 Subject: [PATCH] Remove unneeded logging. --- td/telegram/ReplyMarkup.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/td/telegram/ReplyMarkup.cpp b/td/telegram/ReplyMarkup.cpp index 94df9bf10712..16b2cd1e805b 100644 --- a/td/telegram/ReplyMarkup.cpp +++ b/td/telegram/ReplyMarkup.cpp @@ -1003,7 +1003,6 @@ static tl_object_ptr get_input_keyboard_button( } tl_object_ptr ReplyMarkup::get_input_reply_markup(UserManager *user_manager) const { - LOG(DEBUG) << "Send " << *this; switch (type) { case ReplyMarkup::Type::InlineKeyboard: { vector> rows; @@ -1016,7 +1015,6 @@ tl_object_ptr ReplyMarkup::get_input_reply_markup(Use } rows.push_back(make_tl_object(std::move(buttons))); } - LOG(DEBUG) << "Return inlineKeyboardMarkup to send it"; return make_tl_object(std::move(rows)); } case ReplyMarkup::Type::ShowKeyboard: { @@ -1030,7 +1028,6 @@ tl_object_ptr ReplyMarkup::get_input_reply_markup(Use } rows.push_back(make_tl_object(std::move(buttons))); } - LOG(DEBUG) << "Return replyKeyboardMarkup to send it"; return make_tl_object( is_persistent * REPLY_MARKUP_FLAG_IS_PERSISTENT + need_resize_keyboard * REPLY_MARKUP_FLAG_NEED_RESIZE_KEYBOARD + @@ -1039,12 +1036,10 @@ tl_object_ptr ReplyMarkup::get_input_reply_markup(Use false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, std::move(rows), placeholder); } case ReplyMarkup::Type::ForceReply: - LOG(DEBUG) << "Return replyKeyboardForceReply to send it"; return make_tl_object( is_personal * REPLY_MARKUP_FLAG_IS_PERSONAL + (!placeholder.empty()) * REPLY_MARKUP_FLAG_HAS_PLACEHOLDER, false /*ignored*/, false /*ignored*/, placeholder); case ReplyMarkup::Type::RemoveKeyboard: - LOG(DEBUG) << "Return replyKeyboardHide to send it"; return make_tl_object(is_personal * REPLY_MARKUP_FLAG_IS_PERSONAL, false /*ignored*/); default: