diff --git a/include/cubescript/cubescript.hh b/include/cubescript/cubescript.hh index ae86947c..a8e7e044 100644 --- a/include/cubescript/cubescript.hh +++ b/include/cubescript/cubescript.hh @@ -780,7 +780,11 @@ namespace util { } } - CsString element() const; + CsString element() const { + auto app = ostd::appender(); + element(app); + return ostd::move(app.get()); + } private: CsState &p_state; diff --git a/src/cs_util.cc b/src/cs_util.cc index 8f2f0e6f..c8d5f569 100644 --- a/src/cs_util.cc +++ b/src/cs_util.cc @@ -390,12 +390,6 @@ endblock: } return ret; } - - CsString ListParser::element() const { - auto app = ostd::appender(); - element(app); - return ostd::move(app.get()); - } } /* namespace util */ } /* namespace cscript */