Skip to content

Commit 085189b

Browse files
committed
MT#55283 remove unused function
Change-Id: I25e32943767b7d1a3150dddf93f19c2d2bbc90da
1 parent ad31048 commit 085189b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/str.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ INLINE void str_slice_free(str *);
183183

184184
/* saves "in" into "out" pseudo-URI encoded. "out" point to a buffer with sufficient length. returns length */
185185
size_t str_uri_encode_len(char *out, const char *in, size_t in_len);
186-
INLINE size_t str_uri_encode(char *out, const str *in);
187186
/* reverse of the above. returns newly allocated str + buffer as per str_alloc (must be free'd) */
188187
str *str_uri_decode_len(const char *in, size_t in_len);
189188

@@ -462,10 +461,6 @@ INLINE bool str_token_sep(str *new_token, str *ori_and_remainder, int sep) {
462461
return true;
463462
}
464463

465-
INLINE size_t str_uri_encode(char *out, const str *in) {
466-
return str_uri_encode_len(out, in->s, in->len);
467-
}
468-
469464
INLINE char *str_ncpy(char *dst, size_t bufsize, const str *src) {
470465
size_t to_copy = src->len;
471466
if (to_copy >= bufsize)

0 commit comments

Comments
 (0)