1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

remove the reload create function.

This commit is contained in:
winlin 2014-07-16 11:59:44 +08:00
parent f4ffe0aaee
commit f6b084b679
2 changed files with 0 additions and 17 deletions

View file

@ -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;

View file

@ -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);