From e44b02fe45cd330f3b8090be0cc67baeb3aed662 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 3 Jan 2020 01:48:23 +0300 Subject: [PATCH] Fix some includes. GitOrigin-RevId: 1a3a8bab67f3ed56545d58815187d7a8f99944d9 --- benchmark/bench_handshake.cpp | 2 +- td/telegram/MessagesManager.cpp | 2 +- td/telegram/PasswordManager.cpp | 4 ---- td/telegram/cli.cpp | 2 +- tdutils/td/utils/Timer.cpp | 1 - 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/benchmark/bench_handshake.cpp b/benchmark/bench_handshake.cpp index 2db17e9fb..376175ffa 100644 --- a/benchmark/bench_handshake.cpp +++ b/benchmark/bench_handshake.cpp @@ -4,7 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // -#include "td/utils/benchmark.h" // for bench, do_not_optimize_away, etc +#include "td/utils/benchmark.h" #include "td/mtproto/DhHandshake.h" diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 9054c395b..55c49a1d7 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -23,9 +23,9 @@ #include "td/telegram/HashtagHints.h" #include "td/telegram/InlineQueriesManager.h" #include "td/telegram/InputMessageText.h" +#include "td/telegram/Location.h" #include "td/telegram/logevent/LogEvent.h" #include "td/telegram/logevent/LogEventHelper.h" -#include "td/telegram/Location.h" #include "td/telegram/MessageContent.h" #include "td/telegram/MessageEntity.hpp" #include "td/telegram/MessagesDb.h" diff --git a/td/telegram/PasswordManager.cpp b/td/telegram/PasswordManager.cpp index 1c2886ef1..ece74208a 100644 --- a/td/telegram/PasswordManager.cpp +++ b/td/telegram/PasswordManager.cpp @@ -10,7 +10,6 @@ #include "td/telegram/Global.h" #include "td/telegram/logevent/LogEvent.h" #include "td/telegram/net/NetQueryDispatcher.h" -#include "td/telegram/SecureStorage.h" #include "td/telegram/TdDb.h" #include "td/mtproto/DhHandshake.h" @@ -25,9 +24,6 @@ #include "td/utils/Slice.h" #include "td/utils/Time.h" -#include "td/telegram/td_api.h" -#include "td/telegram/telegram_api.h" // TODO: this file is already included. Why? - namespace td { tl_object_ptr TempPasswordState::as_td_api() const { diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 3a2009164..57e09bd78 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -45,7 +45,7 @@ #include #include #include -#include // for strcmp +#include #include #include #include diff --git a/tdutils/td/utils/Timer.cpp b/tdutils/td/utils/Timer.cpp index a65d011b3..c73b95420 100644 --- a/tdutils/td/utils/Timer.cpp +++ b/tdutils/td/utils/Timer.cpp @@ -8,7 +8,6 @@ #include "td/utils/format.h" #include "td/utils/logging.h" -//#include "td/utils/Slice.h" // TODO move StringBuilder implementation to cpp, remove header #include "td/utils/Time.h" namespace td {