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:
parent
f4ffe0aaee
commit
f6b084b679
2 changed files with 0 additions and 17 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue