diff --git a/openvpn/http/urlencode.hpp b/openvpn/http/urlencode.hpp index 8dad8c83..c2a8735a 100644 --- a/openvpn/http/urlencode.hpp +++ b/openvpn/http/urlencode.hpp @@ -95,25 +95,6 @@ namespace openvpn { i = decode(i); return list; } - - inline bool match_path(const std::string& uri, const std::vector& choices) - { - if (uri.empty()) - return false; - if (uri[0] != '/') - return false; - return std::find(choices.begin(), choices.end(), uri.substr(1)) != choices.end(); - } - - inline bool match_prefix(const std::string& uri, const std::vector& choices) - { - for (const auto &c : choices) - { - if (string::starts_with(uri, std::string("/") + c + std::string("/"))) - return true; - } - return false; - } } }