Skip to content

Commit 9c67308

Browse files
committed
Rm unneeded function
1 parent 4a89e72 commit 9c67308

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ext/standard/url.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,6 @@ static const char *binary_strcspn(const char *s, const char *e, const char *char
102102
return e;
103103
}
104104

105-
static int is_userinfo_valid(const char *str, size_t len)
106-
{
107-
char *valid = "-._~!$&'()*+,;=:";
108-
char *p = str;
109-
while (p - str < len) {
110-
if (isalpha(*p) || isdigit(*p) || strchr(valid, *p)) {
111-
p++;
112-
} else if (*p == '%' && p - str <= len - 3 && isdigit(*(p+1)) && isxdigit(*(p+2))) {
113-
p += 3;
114-
} else {
115-
return 0;
116-
}
117-
}
118-
return 1;
119-
}
120-
121105
/* {{{ php_url_parse
122106
*/
123107
PHPAPI php_url *php_url_parse_ex(char const *str, size_t length)

0 commit comments

Comments
 (0)