mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 00:57:46 +08:00
Fixed warning (cleanup of unused words before clearing the memory... saving time to dB )
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@677 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -813,15 +813,11 @@ void Memory::clear()
|
||||
{
|
||||
ULOGGER_DEBUG("");
|
||||
|
||||
this->cleanUnusedWords();
|
||||
|
||||
if(_dbDriver)
|
||||
{
|
||||
int size = 0;
|
||||
if(_vwd)
|
||||
{
|
||||
size = _vwd->getVisualWords().size();
|
||||
}
|
||||
|
||||
_dbDriver->addStatisticsAfterRunSurf(size);
|
||||
_dbDriver->addStatisticsAfterRunSurf(_vwd->getVisualWords().size());
|
||||
}
|
||||
|
||||
if(_dbDriver)
|
||||
|
||||
Reference in New Issue
Block a user