summaryrefslogtreecommitdiff
path: root/src/string.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-13 13:12:33 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-10-13 13:14:23 +0100
commitfa85f0fc32b105bef5948585a7d7a38c2910854b (patch)
tree62df5d4c99b3ae89274c848895fa94445f870edb /src/string.cc
parentb6f2b872b003639e3a596a2e4a1b817529ebd729 (diff)
Refactor regex uses, do not reference boost except in regex.hh
Diffstat (limited to 'src/string.cc')
-rw-r--r--src/string.cc17
1 files changed, 0 insertions, 17 deletions
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();