From a6d2cc0ef45c432175c3a2369f150cbf477bf66d Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 12 Aug 2016 04:13:33 +0100 Subject: [PATCH] StackedValue changes --- cubescript.hh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cubescript.hh b/cubescript.hh index 61858f2c..ba747069 100644 --- a/cubescript.hh +++ b/cubescript.hh @@ -446,10 +446,8 @@ enum { OSTD_EXPORT void init_libs(CsState &cs, int libs = CS_LIB_ALL); struct OSTD_EXPORT StackedValue: TaggedValue { - StackedValue() = delete; - - StackedValue(CsState &cs, Ident *id = nullptr): - TaggedValue(), p_cs(cs), p_id(id), p_stack(), p_pushed(false) + StackedValue(Ident *id = nullptr): + TaggedValue(), p_id(id), p_stack(), p_pushed(false) {} ~StackedValue() { @@ -461,10 +459,6 @@ struct OSTD_EXPORT StackedValue: TaggedValue { return p_id && p_id->is_alias(); } - bool set_id(ostd::ConstCharRange name) { - return set_id(p_cs.new_ident(name)); - } - Ident *get_id() const { return p_id; } @@ -492,7 +486,6 @@ struct OSTD_EXPORT StackedValue: TaggedValue { } private: - CsState &p_cs; Ident *p_id; IdentStack p_stack; bool p_pushed;