1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 08:06:04 +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:
JamesOrson 2020-07-10 15:43:39 -07:00 committed by James Orson
parent 43187e233a
commit 5f3329e121
12 changed files with 22 additions and 41 deletions

View file

@ -31,11 +31,8 @@ BSpline2D::~BSpline2D()
void BSpline2D::AddPt(float x, float y)
{
if (mUVals != NULL)
{
delete mUVals;
mUVals = NULL;
}
delete mUVals;
mUVals = NULL;
Point2D pt;
pt.mX = x;