From 73463cd12f494171c4e9bb039c3962c7b77f029a Mon Sep 17 00:00:00 2001 From: Allofich Date: Mon, 22 Aug 2016 20:21:47 +0900 Subject: [PATCH] Remove unnecessary virtual destructor --- components/compiler/lineparser.cpp | 2 -- components/compiler/lineparser.hpp | 3 --- 2 files changed, 5 deletions(-) diff --git a/components/compiler/lineparser.cpp b/components/compiler/lineparser.cpp index ad79877ef..a5b67f58b 100644 --- a/components/compiler/lineparser.cpp +++ b/components/compiler/lineparser.cpp @@ -59,8 +59,6 @@ namespace Compiler mExprParser (errorHandler, context, locals, literals), mAllowExpression (allowExpression) {} - LineParser::~LineParser() {} - bool LineParser::parseInt (int value, const TokenLoc& loc, Scanner& scanner) { if (mAllowExpression && mState==BeginState) diff --git a/components/compiler/lineparser.hpp b/components/compiler/lineparser.hpp index 1de4fa927..d92c4895e 100644 --- a/components/compiler/lineparser.hpp +++ b/components/compiler/lineparser.hpp @@ -51,9 +51,6 @@ namespace Compiler bool allowExpression = false); ///< \param allowExpression Allow lines consisting of a naked expression /// (result is send to the messagebox interface) - - virtual ~LineParser(); - ///< destructor virtual bool parseInt (int value, const TokenLoc& loc, Scanner& scanner); ///< Handle an int token.