Remove NEW_BOOST_URL macro
Now that the subtree update is done, this define is no longer needed.
Tested: Code compiles. Noop.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Idc5d7ef69c009982a2476fadc1d95e3280bfff48
diff --git a/http/http_request.hpp b/http/http_request.hpp
index 32223c3..e0cb9dc 100644
--- a/http/http_request.hpp
+++ b/http/http_request.hpp
@@ -23,9 +23,7 @@
boost::beast::http::fields& fields;
std::string_view url{};
boost::urls::url_view urlView{};
-#ifndef NEW_BOOST_URL
- boost::urls::query_params_view urlParams{};
-#endif
+
bool isSecure{false};
const std::string& body;
@@ -100,7 +98,6 @@
}
private:
-#ifdef NEW_BOOST_URL
bool setUrlInfo()
{
auto result = boost::urls::parse_relative_ref(
@@ -115,22 +112,6 @@
urlView.encoded_path().size());
return true;
}
-#else
- bool setUrlInfo()
- {
- boost::urls::error_code ec;
- urlView = boost::urls::parse_relative_ref(
- boost::urls::string_view(target().data(), target().size()), ec);
- if (ec)
- {
- return false;
- }
- url = std::string_view(urlView.encoded_path().data(),
- urlView.encoded_path().size());
- urlParams = urlView.query_params();
- return true;
- }
-#endif
};
} // namespace crow