diff --git a/cubescript.hh b/cubescript.hh index 61858f2..ba74706 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;