summaryrefslogtreecommitdiff
path: root/src/other_tools/utils/curl_url_handle.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2024-03-06 18:10:52 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2024-03-08 14:18:43 +0100
commitffeed0b29802118fddbf75a334bb32888a2363da (patch)
tree2daab672db0383cac15452e4765335be9ce55beb /src/other_tools/utils/curl_url_handle.hpp
parent17f6d64660c1fed29a948ba39b4a190b9a243ebb (diff)
downloadjustbuild-ffeed0b29802118fddbf75a334bb32888a2363da.tar.gz
Remove dead code for host replacement
Diffstat (limited to 'src/other_tools/utils/curl_url_handle.hpp')
-rw-r--r--src/other_tools/utils/curl_url_handle.hpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/other_tools/utils/curl_url_handle.hpp b/src/other_tools/utils/curl_url_handle.hpp
index 4680cb34..3d1e6949 100644
--- a/src/other_tools/utils/curl_url_handle.hpp
+++ b/src/other_tools/utils/curl_url_handle.hpp
@@ -154,17 +154,6 @@ class CurlURLHandle {
[[nodiscard]] auto NoproxyStringMatches(
std::string const& no_proxy) noexcept -> std::optional<bool>;
- /// \brief Tries to replace the hostname of a given URL. This is done by
- /// parsing the URL with minimal validity checks, replacing the original
- /// hostname with the one given, then putting the new URL back together.
- /// \note The given URL MUST have a hostname for this to succeed.
- /// \note A missing scheme field will be set to "https://" and a missing
- /// path field will be set to "/".
- /// \returns The new URL or nullopt on errors. This method is never fatal.
- [[nodiscard]] static auto ReplaceHostname(
- std::string const& url,
- std::string const& hostname) noexcept -> std::optional<std::string>;
-
/// \brief Gets the hostname from URL.
/// \returns The host name or std::nullopt if missing or on errors.
[[nodiscard]] static auto GetHostname(std::string const& url) noexcept