mirror of
https://github.com/minetest/minetest.git
synced 2025-07-06 01:40:21 +02:00
Remove superfluous pointer null checks
This commit is contained in:
committed by
ShadowNinja
parent
7bfd53ba58
commit
5cc8ad946e
@ -97,8 +97,7 @@ public:
|
||||
private:
|
||||
void drop()
|
||||
{
|
||||
if(data)
|
||||
delete[] data;
|
||||
delete[] data;
|
||||
}
|
||||
T *data;
|
||||
unsigned int m_size;
|
||||
@ -214,8 +213,7 @@ private:
|
||||
(*refcount)--;
|
||||
if(*refcount == 0)
|
||||
{
|
||||
if(data)
|
||||
delete[] data;
|
||||
delete[] data;
|
||||
delete refcount;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user