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

GC: Eliminate unused code. v5.0.84

This commit is contained in:
winlin 2022-10-30 12:42:37 +08:00
parent 7d9dc69ae1
commit ef0aefd546
8 changed files with 20 additions and 43 deletions

View file

@ -406,21 +406,21 @@ void SrsResourceManager::dispose(ISrsResource* c)
}
}
SrsSweepGc::SrsSweepGc()
SrsLazySweepGc::SrsLazySweepGc()
{
}
SrsSweepGc::~SrsSweepGc()
SrsLazySweepGc::~SrsLazySweepGc()
{
}
srs_error_t SrsSweepGc::start()
srs_error_t SrsLazySweepGc::start()
{
srs_error_t err = srs_success;
return err;
}
void SrsSweepGc::remove(SrsLazyObject* c)
void SrsLazySweepGc::remove(SrsLazyObject* c)
{
// TODO: FIXME: MUST lazy sweep.
srs_freep(c);