From 3ab589286365c93542a035648e70438b905af022 Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 10 Dec 2015 18:02:23 +0800 Subject: [PATCH] refine comments. --- trunk/src/app/srs_app_config.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 0d509f587..ea619737e 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -2796,7 +2796,6 @@ int SrsConfig::raw_set_pid(string pid, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("pid"); if (conf->arg0() == pid) { @@ -2821,7 +2820,6 @@ int SrsConfig::raw_set_chunk_size(string chunk_size, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("chunk_size"); if (conf->arg0() == chunk_size) { @@ -2844,7 +2842,6 @@ int SrsConfig::raw_set_ff_log_dir(string ff_log_dir, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("ff_log_dir"); if (conf->arg0() == ff_log_dir) { @@ -2867,7 +2864,6 @@ int SrsConfig::raw_set_srs_log_tank(string srs_log_tank, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("srs_log_tank"); if (conf->arg0() == srs_log_tank) { @@ -2892,7 +2888,6 @@ int SrsConfig::raw_set_srs_log_level(string srs_log_level, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("srs_log_level"); if (conf->arg0() == srs_log_level) { @@ -2917,7 +2912,6 @@ int SrsConfig::raw_set_srs_log_file(string srs_log_file, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("srs_log_file"); if (conf->arg0() == srs_log_file) { @@ -2942,7 +2936,6 @@ int SrsConfig::raw_set_max_connections(string max_connections, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("max_connections"); if (conf->arg0() == max_connections) { @@ -2967,7 +2960,6 @@ int SrsConfig::raw_set_utc_time(string utc_time, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("utc_time"); if (conf->arg0() == utc_time) { @@ -2992,7 +2984,6 @@ int SrsConfig::raw_set_pithy_print_ms(string pithy_print_ms, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("pithy_print_ms"); if (conf->arg0() == pithy_print_ms) { @@ -3017,7 +3008,6 @@ int SrsConfig::raw_create_vhost(string vhost, bool& applied) applied = false; - SrsConfDirective* conf = root->get_or_create("vhost", vhost); conf->get_or_create("enabled")->set_arg0("on");