diff --git a/transceiver.cpp b/transceiver.cpp index cbcd82c..73aeb69 100644 --- a/transceiver.cpp +++ b/transceiver.cpp @@ -232,14 +232,6 @@ uint64_t TdTransceiver::sendQuery(td::td_api::object_ptr f }); } -uint64_t TdTransceiver::sendQueryWithTimeout(td::td_api::object_ptr f, - ResponseCb handler, unsigned timeoutSeconds) -{ - uint64_t queryId = sendQuery(std::move(f), handler); - setQueryTimer(queryId, handler, timeoutSeconds, true); - return queryId; -} - uint64_t TdTransceiver::sendQueryWithTimeout(td::td_api::object_ptr f, ResponseCb2 handler, unsigned timeoutSeconds) { diff --git a/transceiver.h b/transceiver.h index 66b0eef..e88b024 100644 --- a/transceiver.h +++ b/transceiver.h @@ -44,8 +44,6 @@ public: uint64_t sendQuery(td::td_api::object_ptr f, ResponseCb handler); uint64_t sendQuery(td::td_api::object_ptr f, ResponseCb2 handler); - uint64_t sendQueryWithTimeout(td::td_api::object_ptr f, - ResponseCb handler, unsigned timeoutSeconds); uint64_t sendQueryWithTimeout(td::td_api::object_ptr f, ResponseCb2 handler, unsigned timeoutSeconds); void setQueryTimer(uint64_t queryId, ResponseCb handler, unsigned timeoutSeconds,