diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2024-04-20 16:49:02 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2024-04-24 23:23:38 +0200 |
commit | 8f39aaae417c33490e0e41fb97620eb23ced3d05 (patch) | |
tree | 5e01b20657311dd75815eadfdefb6489eec08149 /src/common/url.h | |
parent | 650d43ec15f7a3ae38126f65ef8fa0b1fd3ee936 (diff) |
refactor: Remove hooking code for urlDecode
The point of this was to be able to build bitcoin-tx and bitcoin-wallet without libevent, see #18504.
Now that we use our own implementation of urlDecode this is not needed anymore.
Co-authored-by: stickies-v <stickies-v@protonmail.com>
Diffstat (limited to 'src/common/url.h')
-rw-r--r-- | src/common/url.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/url.h b/src/common/url.h index 7b0a944776..42e982fb94 100644 --- a/src/common/url.h +++ b/src/common/url.h @@ -8,8 +8,10 @@ #include <string> #include <string_view> -using UrlDecodeFn = std::string(std::string_view url_encoded); -UrlDecodeFn urlDecode; -extern UrlDecodeFn* const URL_DECODE; +/* Decode a URL. + * + * Notably this implementation does not decode a '+' to a ' '. + */ +std::string urlDecode(std::string_view url_encoded); #endif // BITCOIN_COMMON_URL_H |