From bb75793539f71f7bd12a45cba8ff129d19c1b56b Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 30 Apr 2017 14:39:19 +0200 Subject: [PATCH] ccstruct: Remove unneeded NULL checks It's also not necessary to nullify class variables in the destructor. Signed-off-by: Stefan Weil --- ccstruct/statistc.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ccstruct/statistc.cpp b/ccstruct/statistc.cpp index 8b1ba8c9a..a28217f24 100644 --- a/ccstruct/statistc.cpp +++ b/ccstruct/statistc.cpp @@ -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_; } /**********************************************************************