aboutsummaryrefslogtreecommitdiff
path: root/source/base
diff options
context:
space:
mode:
Diffstat (limited to 'source/base')
-rw-r--r--source/base/stack.d6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/base/stack.d b/source/base/stack.d
index 253bac0..e42ff12 100644
--- a/source/base/stack.d
+++ b/source/base/stack.d
@@ -5,8 +5,6 @@ import std.string;
import std.variant;
import std.container : SList;
-import definition = base.definition;
-
alias Token = Algebraic!(int, bool, string);
alias Stack = SList;
@@ -35,9 +33,7 @@ Token pop(ref Stack!Token stack) {
}
void push(ref Stack!Token stack, Token token) {
- if ( !definition.handle(token) ) {
- stack.insertFront(token);
- }
+ stack.insertFront(token);
}
template push(T)