util: drop parse_user_at_host() since its unused now

This commit is contained in:
Lennart Poettering
2014-02-11 17:16:07 +01:00
parent eb91eb187b
commit c50e4f95d8
3 changed files with 0 additions and 31 deletions
-14
View File
@@ -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;
-1
View File
@@ -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);