Skip to content

Commit bb75793

Browse files
committed
ccstruct: Remove unneeded NULL checks
It's also not necessary to nullify class variables in the destructor. Signed-off-by: Stefan Weil <[email protected]>
1 parent aea0d9a commit bb75793

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ccstruct/statistc.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ void STATS::clear() { // clear out buckets
9090
* Destructor for a stats class.
9191
**********************************************************************/
9292
STATS::~STATS () {
93-
if (buckets_ != NULL) {
94-
delete [] buckets_;
95-
buckets_ = NULL;
96-
}
93+
delete [] buckets_;
9794
}
9895

9996
/**********************************************************************

0 commit comments

Comments
 (0)