ccstruct: Remove unneeded NULL checks

It's also not necessary to nullify class variables in the destructor.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2017-04-30 14:39:19 +02:00
parent aea0d9a8d5
commit bb75793539

View File

@ -90,10 +90,7 @@ void STATS::clear() { // clear out buckets
* Destructor for a stats class.
**********************************************************************/
STATS::~STATS () {
if (buckets_ != NULL) {
delete [] buckets_;
buckets_ = NULL;
}
delete [] buckets_;
}
/**********************************************************************