remove unneeded checks
delete NULL is a valid operation
This commit is contained in:
@ -168,7 +168,6 @@ void dataExchangeModel::allocateArray
|
||||
|
||||
void dataExchangeModel::destroy(int* array) const
|
||||
{
|
||||
if (array == NULL) return;
|
||||
delete [] array;
|
||||
}
|
||||
//====
|
||||
@ -191,8 +190,6 @@ void dataExchangeModel::allocateArray
|
||||
|
||||
void dataExchangeModel::destroy(double* array) const
|
||||
{
|
||||
if (array == NULL) return;
|
||||
|
||||
delete [] array;
|
||||
}
|
||||
//====
|
||||
|
||||
Reference in New Issue
Block a user