aboutsummaryrefslogtreecommitdiff
path: root/src/old/stack.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/old/stack.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/old/stack.cpp b/src/old/stack.cpp
deleted file mode 100644
index 8d9565c..0000000
--- a/src/old/stack.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
1#include "stack.h"
2
3void Stack::push( void *data )
4{
5 lStackData.append( data );
6}
7
8void *Stack::top()
9{
10 return lStackData.getAt( lStackData.getSize()-1 );
11}
12
13void Stack::pop()
14{
15 lStackData.deleteAt( lStackData.getSize()-1 );
16}
17
18void *Stack::poptop()
19{
20 void *dat = top();
21 pop();
22 return dat;
23}
24
25bool Stack::isEmpty()
26{
27 return lStackData.isEmpty();
28}
29
30void Stack::empty()
31{
32 lStackData.empty();
33}