From ed106d7e11281f9f06cb07edc85b24d970e6c8fb Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 23 Oct 2016 19:32:24 +0200 Subject: [PATCH] remove list_explode --- include/cubescript/cubescript.hh | 3 --- src/cs_util.cc | 11 ----------- 2 files changed, 14 deletions(-) diff --git a/include/cubescript/cubescript.hh b/include/cubescript/cubescript.hh index f2dd181..05b778d 100644 --- a/include/cubescript/cubescript.hh +++ b/include/cubescript/cubescript.hh @@ -779,9 +779,6 @@ private: OSTD_EXPORT ostd::Maybe list_index( CsState &cs, ostd::ConstCharRange s, ostd::Size idx ); - OSTD_EXPORT CsVector list_explode( - CsState &cs, ostd::ConstCharRange s, ostd::Size limit = -1 - ); template inline ostd::Ptrdiff format_int(R &&writer, CsInt val) { diff --git a/src/cs_util.cc b/src/cs_util.cc index 5b2940c..50bb388 100644 --- a/src/cs_util.cc +++ b/src/cs_util.cc @@ -410,17 +410,6 @@ endblock: } return ostd::move(p.element()); } - - OSTD_EXPORT CsVector list_explode( - CsState &cs, ostd::ConstCharRange s, ostd::Size limit - ) { - CsVector ret; - ListParser p(cs, s); - while ((ret.size() < limit) && p.parse()) { - ret.push(ostd::move(p.element())); - } - return ret; - } } /* namespace util */ } /* namespace cscript */