winlin

remove the reload create function.

... ... @@ -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;
... ...
... ... @@ -142,8 +142,6 @@ public:
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);
virtual int reload_vhost(SrsConfDirective* old_root);
... ...