Remove unnecessary checks before delete (#9500)
Co-authored-by: Nicolas Abril <nicolasabril@alunos.utfpr.edu.br>
This commit is contained in:
parent
0cb34ce158
commit
30d795b4b2
@ -1285,8 +1285,7 @@ ServerMap::~ServerMap()
|
|||||||
Close database if it was opened
|
Close database if it was opened
|
||||||
*/
|
*/
|
||||||
delete dbase;
|
delete dbase;
|
||||||
if (dbase_ro)
|
delete dbase_ro;
|
||||||
delete dbase_ro;
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/*
|
/*
|
||||||
|
@ -90,9 +90,7 @@ MapgenFractal::MapgenFractal(MapgenFractalParams *params, EmergeManager *emerge)
|
|||||||
|
|
||||||
MapgenFractal::~MapgenFractal()
|
MapgenFractal::~MapgenFractal()
|
||||||
{
|
{
|
||||||
if (noise_seabed)
|
delete noise_seabed;
|
||||||
delete noise_seabed;
|
|
||||||
|
|
||||||
delete noise_filler_depth;
|
delete noise_filler_depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user