diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index a099a13fd..c3d7d0fde 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -522,21 +522,6 @@ int SrsConfig::reload() return ret; } -SrsConfDirective* SrsConfig::get_or_create(SrsConfDirective* node, string name) -{ - srs_assert(node); - - SrsConfDirective* conf = node->get(name); - - if (!conf) { - conf = new SrsConfDirective(); - conf->name = name; - node->directives.push_back(conf); - } - - return conf; -} - int SrsConfig::reload_http_api(SrsConfDirective* old_root) { int ret = ERROR_SUCCESS; diff --git a/trunk/src/app/srs_app_config.hpp b/trunk/src/app/srs_app_config.hpp index ecd3b95bb..7be9a64e3 100644 --- a/trunk/src/app/srs_app_config.hpp +++ b/trunk/src/app/srs_app_config.hpp @@ -141,8 +141,6 @@ public: virtual void subscribe(ISrsReloadHandler* handler); virtual void unsubscribe(ISrsReloadHandler* handler); virtual int reload(); -private: - virtual SrsConfDirective* get_or_create(SrsConfDirective* node, std::string name); private: virtual int reload_http_api(SrsConfDirective* old_root); virtual int reload_http_stream(SrsConfDirective* old_root);