Remove "disabled_" options clean up.

GitOrigin-RevId: 67e05fa327e327f9182051099aff23f246f1c6c5
This commit is contained in:
levlam 2020-04-23 17:30:48 +03:00
parent 9be242f877
commit aa6029f63c
3 changed files with 0 additions and 11 deletions

View File

@ -1262,12 +1262,6 @@ void ConfigManager::process_config(tl_object_ptr<telegram_api::config> config) {
shared_config.set_option_empty("notify_default_delay_ms"); shared_config.set_option_empty("notify_default_delay_ms");
shared_config.set_option_empty("large_chat_size"); shared_config.set_option_empty("large_chat_size");
if (is_from_main_dc) {
for (auto &feature : shared_config.get_options("disabled_")) {
shared_config.set_option_empty(feature.first);
}
}
// TODO implement online status updates // TODO implement online status updates
// shared_config.set_option_integer("offline_blur_timeout_ms", config->offline_blur_timeout_ms_); // shared_config.set_option_integer("offline_blur_timeout_ms", config->offline_blur_timeout_ms_);
// shared_config.set_option_integer("offline_idle_timeout_ms", config->offline_idle_timeout_ms_); // shared_config.set_option_integer("offline_idle_timeout_ms", config->offline_idle_timeout_ms_);

View File

@ -59,10 +59,6 @@ string ConfigShared::get_option(Slice name) const {
return config_pmc_->get(name.str()); return config_pmc_->get(name.str());
} }
std::unordered_map<string, string> ConfigShared::get_options(Slice prefix) const {
return config_pmc_->prefix_get(prefix);
}
std::unordered_map<string, string> ConfigShared::get_options() const { std::unordered_map<string, string> ConfigShared::get_options() const {
return config_pmc_->get_all(); return config_pmc_->get_all();
} }

View File

@ -41,7 +41,6 @@ class ConfigShared {
void set_option_string(Slice name, Slice value); void set_option_string(Slice name, Slice value);
bool have_option(Slice name) const; bool have_option(Slice name) const;
std::unordered_map<string, string> get_options(Slice prefix) const;
std::unordered_map<string, string> get_options() const; std::unordered_map<string, string> get_options() const;
bool get_option_boolean(Slice name, bool default_value = false) const; bool get_option_boolean(Slice name, bool default_value = false) const;