From 3206e9b2b839c603a6857a80f73fc814647e2fbc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 May 2015 22:33:36 +0300 Subject: Remove additional checks from mstack. --- src/resources/mstack.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/resources/mstack.h b/src/resources/mstack.h index 2a568bc5a..3e7c28b80 100644 --- a/src/resources/mstack.h +++ b/src/resources/mstack.h @@ -54,28 +54,19 @@ struct MStack final T &getPop() { - if (mPointer == mStartPointer) - logger->log("error: minimal stack size reached"); - else - mPointer --; + mPointer --; return *mPointer; } const T &getPopConst() { - if (mPointer == mStartPointer) - logger->log("error: minimal stack size reached"); - else - mPointer --; + mPointer --; return *mPointer; } void pop() { - if (mPointer == mStartPointer) - logger->log("error: minimal stack size reached"); - else - mPointer --; + mPointer --; } T &top() const -- cgit v1.2.3-70-g09d2