Make two Td methods private.

GitOrigin-RevId: 7734403e23cdc9e9c7e7b50ba8c41799efc02945
This commit is contained in:
levlam 2020-08-02 23:03:06 +03:00
parent 51be272f44
commit 20734a565b
2 changed files with 4 additions and 3 deletions

View File

@ -3764,6 +3764,7 @@ ActorShared<Td> Td::create_reference() {
inc_actor_refcnt();
return actor_shared(this, ActorIdType);
}
void Td::inc_actor_refcnt() {
actor_refcnt_++;
}

View File

@ -103,7 +103,6 @@ class Td final : public NetQueryCallback {
void request(uint64 id, tl_object_ptr<td_api::Function> function);
void destroy();
void close();
void schedule_get_terms_of_service(int32 expires_in);
@ -226,8 +225,6 @@ class Td final : public NetQueryCallback {
void send_update(tl_object_ptr<td_api::Update> &&object);
ActorShared<Td> create_reference();
static td_api::object_ptr<td_api::Object> static_request(td_api::object_ptr<td_api::Function> function);
private:
@ -246,12 +243,15 @@ class Td final : public NetQueryCallback {
void send_error_raw(uint64 id, int32 code, CSlice error);
void answer_ok_query(uint64 id, Status status);
ActorShared<Td> create_reference();
void inc_actor_refcnt();
void dec_actor_refcnt();
void inc_request_actor_refcnt();
void dec_request_actor_refcnt();
void close();
void on_closed();
void dec_stop_cnt();