Remove unused Td::create_net_actor.

This commit is contained in:
levlam 2022-02-04 16:34:11 +03:00
parent 17fb8ff6fc
commit 1ffb1ebb2f
2 changed files with 2 additions and 20 deletions

View File

@ -165,8 +165,8 @@ function split_file($file, $chunks, $undo) {
$deps = array(); // all functions from the same subarray must be in the same file
$parents = array();
foreach ($functions as $i => $f) {
if (preg_match_all('/(?J)(create_handler|create_net_actor)<(?<name>[A-Z][A-Za-z]*)>|'.
'(?<name>[A-Z][A-Za-z]*) (final )?: public (Td::ResultHandler|NetActor|Request)|'.
if (preg_match_all('/(?J)create_handler<(?<name>[A-Z][A-Za-z]*)>|'.
'(?<name>[A-Z][A-Za-z]*) (final )?: public (Td::ResultHandler|Request)|'.
'(CREATE_REQUEST|CREATE_NO_ARGS_REQUEST)[(](?<name>[A-Z][A-Za-z]*)|'.
'(?<name>complete_pending_preauthentication_requests)|'.
'(?<name>get_message_history_slice)|'.

View File

@ -128,24 +128,6 @@ class Td final : public Actor {
void set_is_bot_online(bool is_bot_online);
template <class ActorT, class... ArgsT>
ActorId<ActorT> create_net_actor(ArgsT &&...args) {
LOG_CHECK(close_flag_ < 1) << close_flag_
#if TD_CLANG || TD_GCC
<< ' ' << __PRETTY_FUNCTION__
#endif
;
auto slot_id = request_actors_.create(ActorOwn<>(), RequestActorIdType);
inc_request_actor_refcnt();
auto actor = make_unique<ActorT>(std::forward<ArgsT>(args)...);
actor->set_parent(actor_shared(this, slot_id));
auto actor_own = register_actor("net_actor", std::move(actor));
auto actor_id = actor_own.get();
*request_actors_.get(slot_id) = std::move(actor_own);
return actor_id;
}
unique_ptr<AudiosManager> audios_manager_;
unique_ptr<CallbackQueriesManager> callback_queries_manager_;
unique_ptr<DocumentsManager> documents_manager_;