From 53cd6c1a790b04c3de143dda6c58cca9108fb9bc Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 3 May 2023 16:38:49 +0300 Subject: [PATCH] Improve includes. --- td/telegram/MessagesManager.cpp | 1 + td/telegram/MessagesManager.h | 1 - td/telegram/OrderedMessage.h | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index d4a4c1fba..faad07d05 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -77,6 +77,7 @@ #include "td/utils/algorithm.h" #include "td/utils/format.h" +#include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/PathView.h" #include "td/utils/Random.h" diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index 0168a2060..eb7eecf3a 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -80,7 +80,6 @@ #include "td/utils/HashTableUtils.h" #include "td/utils/Heap.h" #include "td/utils/Hints.h" -#include "td/utils/logging.h" #include "td/utils/Promise.h" #include "td/utils/Slice.h" #include "td/utils/Status.h" diff --git a/td/telegram/OrderedMessage.h b/td/telegram/OrderedMessage.h index f5d088f0a..b36e86024 100644 --- a/td/telegram/OrderedMessage.h +++ b/td/telegram/OrderedMessage.h @@ -52,14 +52,11 @@ class OrderedMessages { size_t last_right_pos = 0; while (root != nullptr) { - // LOG(DEBUG) << "Have root->message_id_ = " << root->message_id_; stack_.push_back(root); if (root->message_id_ <= message_id) { - // LOG(DEBUG) << "Go right"; last_right_pos = stack_.size(); root = root->right_.get(); } else { - // LOG(DEBUG) << "Go left"; root = root->left_.get(); } }