From ac37dfc42113118e161c1b9a048912a29994c096 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Tue, 13 Oct 2015 21:20:22 +0100 Subject: [PATCH] Omit unnecessary null pointer check (suggested by Markus Elfring). --- re2c/src/parse/scanner.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/re2c/src/parse/scanner.cc b/re2c/src/parse/scanner.cc index 74fd8c49..1f55fa77 100644 --- a/re2c/src/parse/scanner.cc +++ b/re2c/src/parse/scanner.cc @@ -167,10 +167,7 @@ void Scanner::fatalf(const char *fmt, ...) const Scanner::~Scanner() { - if (bot) - { - delete [] bot; - } + delete [] bot; } void Scanner::reuse() -- 2.40.0