Delete function url_decode

It was used only in examples/peerconnection/server/peer_channel.cc,
for questionable utility.

Bug: webrtc:6663
Change-Id: I4047eb12f35615621dd0b34a694dead51c5fd20d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128869
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27279}
This commit is contained in:
Niels Möller
2019-03-25 14:45:58 +01:00
committed by Commit Bot
parent 6cab5c8718
commit d999351951
5 changed files with 1 additions and 110 deletions

View File

@ -26,12 +26,6 @@ namespace rtc {
// String Encoding Utilities
//////////////////////////////////////////////////////////////////////
// Note: in-place decoding (buffer == source) is allowed.
size_t url_decode(char* buffer,
size_t buflen,
const char* source,
size_t srclen);
// Convert an unsigned value from 0 to 15 to the hex character equivalent...
char hex_encode(unsigned char val);
// ...and vice-versa.
@ -82,26 +76,6 @@ size_t hex_decode_with_delimiter(char* buffer,
const std::string& source,
char delimiter);
// Apply any suitable string transform (including the ones above) to an STL
// string. Stack-allocated temporary space is used for the transformation,
// so value and source may refer to the same string.
typedef size_t (*Transform)(char* buffer,
size_t buflen,
const char* source,
size_t srclen);
size_t transform(std::string& value,
size_t maxlen,
const std::string& source,
Transform t);
// Return the result of applying transform t to source.
std::string s_transform(const std::string& source, Transform t);
// Convenience wrappers.
inline std::string s_url_decode(const std::string& source) {
return s_transform(source, url_decode);
}
// Joins the source vector of strings into a single string, with each
// field in source being separated by delimiter. No trailing delimiter is added.
std::string join(const std::vector<std::string>& source, char delimiter);