aboutsummaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/model.cpp b/model.cpp
index 32c79d0..ba664a8 100644
--- a/model.cpp
+++ b/model.cpp
@@ -23,13 +23,9 @@ bool FrameObj::is_parse_bracket() {
return ftype & CLS_PAR_BRA;
}
-bool EvalObj::gc_dec() { return --gc_cnt == 0; }
-void EvalObj::gc_inc() { gc_cnt++; }
-size_t EvalObj::gc_get_cnt() { return gc_cnt; }
-
EvalObj::EvalObj(int _otype) :
- FrameObj(CLS_EVAL_OBJ), gc_cnt(0), otype(_otype) {
- gc.join(this);
+ FrameObj(CLS_EVAL_OBJ), otype(_otype) {
+ gc_obj = gc.join(this);
}
EvalObj::~EvalObj() {