From fa85f0fc32b105bef5948585a7d7a38c2910854b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 13 Oct 2014 13:12:33 +0100 Subject: Refactor regex uses, do not reference boost except in regex.hh --- src/string.cc | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/string.cc') diff --git a/src/string.cc b/src/string.cc index 172193d4..f31ed83f 100644 --- a/src/string.cc +++ b/src/string.cc @@ -85,23 +85,6 @@ String to_string(int val) return buf; } -String option_to_string(const Regex& re) -{ - return String{re.str()}; -} - -void option_from_string(StringView str, Regex& re) -{ - try - { - re = Regex{str.begin(), str.end()}; - } - catch (boost::regex_error& err) - { - throw runtime_error("unable to create regex: "_str + err.what()); - } -} - bool prefix_match(StringView str, StringView prefix) { auto it = str.begin(); -- cgit v1.2.3