Remove unused function.

This commit is contained in:
levlam 2022-05-02 20:35:37 +03:00
parent 449974d425
commit 134b7e7d01
2 changed files with 1 additions and 6 deletions

View File

@ -272,13 +272,10 @@ void NetQueryDispatcher::update_mtproto_header() {
}
}
void NetQueryDispatcher::update_valid_dc(DcId dc_id) {
wait_dc_init(dc_id, true).ignore();
}
bool NetQueryDispatcher::is_dc_inited(int32 raw_dc_id) {
return dcs_[raw_dc_id - 1].is_valid_.load(std::memory_order_relaxed);
}
int32 NetQueryDispatcher::get_session_count() {
return max(narrow_cast<int32>(G()->shared_config().get_option_integer("session_count")), 1);
}

View File

@ -51,8 +51,6 @@ class NetQueryDispatcher {
void update_use_pfs();
void update_mtproto_header();
void update_valid_dc(DcId dc_id);
DcId get_main_dc_id() const {
return DcId::internal(main_dc_id_.load(std::memory_order_relaxed));
}