mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Remove unnecessary delete statements
If a value is null, the C++ delete statement will do nothing, so there is bo need to explicitly check if the value is null.
This commit is contained in:
parent
7f726ef9ba
commit
e76becf4c6
12 changed files with 22 additions and 41 deletions
|
@ -6028,8 +6028,8 @@ BfType* BfModule::ResolveGenericType(BfType* unspecializedType, BfTypeVector* ty
|
|||
delegateType = dlgType;
|
||||
}
|
||||
|
||||
if (delegateType->mTypeDef != NULL)
|
||||
delete delegateType->mTypeDef;
|
||||
delete delegateType->mTypeDef;
|
||||
delegateType->mTypeDef = NULL;
|
||||
BfDelegateInfo* delegateInfo = delegateType->GetDelegateInfo();
|
||||
delegateInfo->mParams.Clear();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue