Remove unused Td::create_net_actor.
This commit is contained in:
parent
17fb8ff6fc
commit
1ffb1ebb2f
@ -165,8 +165,8 @@ function split_file($file, $chunks, $undo) {
|
|||||||
$deps = array(); // all functions from the same subarray must be in the same file
|
$deps = array(); // all functions from the same subarray must be in the same file
|
||||||
$parents = array();
|
$parents = array();
|
||||||
foreach ($functions as $i => $f) {
|
foreach ($functions as $i => $f) {
|
||||||
if (preg_match_all('/(?J)(create_handler|create_net_actor)<(?<name>[A-Z][A-Za-z]*)>|'.
|
if (preg_match_all('/(?J)create_handler<(?<name>[A-Z][A-Za-z]*)>|'.
|
||||||
'(?<name>[A-Z][A-Za-z]*) (final )?: public (Td::ResultHandler|NetActor|Request)|'.
|
'(?<name>[A-Z][A-Za-z]*) (final )?: public (Td::ResultHandler|Request)|'.
|
||||||
'(CREATE_REQUEST|CREATE_NO_ARGS_REQUEST)[(](?<name>[A-Z][A-Za-z]*)|'.
|
'(CREATE_REQUEST|CREATE_NO_ARGS_REQUEST)[(](?<name>[A-Z][A-Za-z]*)|'.
|
||||||
'(?<name>complete_pending_preauthentication_requests)|'.
|
'(?<name>complete_pending_preauthentication_requests)|'.
|
||||||
'(?<name>get_message_history_slice)|'.
|
'(?<name>get_message_history_slice)|'.
|
||||||
|
@ -128,24 +128,6 @@ class Td final : public Actor {
|
|||||||
|
|
||||||
void set_is_bot_online(bool is_bot_online);
|
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<AudiosManager> audios_manager_;
|
||||||
unique_ptr<CallbackQueriesManager> callback_queries_manager_;
|
unique_ptr<CallbackQueriesManager> callback_queries_manager_;
|
||||||
unique_ptr<DocumentsManager> documents_manager_;
|
unique_ptr<DocumentsManager> documents_manager_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user