util: drop parse_user_at_host() since its unused now
This commit is contained in:
@@ -5838,20 +5838,6 @@ bool id128_is_valid(const char *s) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void parse_user_at_host(char *arg, char **user, char **host) {
|
||||
assert(arg);
|
||||
assert(user);
|
||||
assert(host);
|
||||
|
||||
*host = strchr(arg, '@');
|
||||
if (*host == NULL)
|
||||
*host = arg;
|
||||
else {
|
||||
*host[0]++ = '\0';
|
||||
*user = arg;
|
||||
}
|
||||
}
|
||||
|
||||
int split_pair(const char *s, const char *sep, char **l, char **r) {
|
||||
char *x, *a, *b;
|
||||
|
||||
|
||||
@@ -833,7 +833,6 @@ static inline void _reset_locale_(struct _locale_struct_ *s) {
|
||||
_saved_locale_.quit = true)
|
||||
|
||||
bool id128_is_valid(const char *s) _pure_;
|
||||
void parse_user_at_host(char *arg, char **user, char **host);
|
||||
|
||||
int split_pair(const char *s, const char *sep, char **l, char **r);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user