summaryrefslogtreecommitdiff
path: root/src/resources/mstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/mstack.h')
-rw-r--r--src/resources/mstack.h15
1 files changed, 3 insertions, 12 deletions
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