mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Remove superfluous pointer null checks
This commit is contained in:
committed by
ShadowNinja
parent
7bfd53ba58
commit
5cc8ad946e
@@ -40,8 +40,7 @@ CachedMapBlockData::~CachedMapBlockData()
|
||||
{
|
||||
assert(refcount_from_queue == 0);
|
||||
|
||||
if (data)
|
||||
delete[] data;
|
||||
delete[] data;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -60,8 +59,7 @@ QueuedMeshUpdate::QueuedMeshUpdate():
|
||||
|
||||
QueuedMeshUpdate::~QueuedMeshUpdate()
|
||||
{
|
||||
if (data)
|
||||
delete data;
|
||||
delete data;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user