diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-11 16:45:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-11 17:16:07 +0100 |
commit | c50e4f95d8cfcd21bde2b0d1ff24b4de8fef4976 (patch) | |
tree | 72dc3520c924b565724055d852b673c6db140e07 /src/shared | |
parent | eb91eb187b7491e05fb95215b77cb62061f41d08 (diff) |
util: drop parse_user_at_host() since its unused now
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/util.c | 14 | ||||
-rw-r--r-- | src/shared/util.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index f76ed6f563..21edd3ac2f 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -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; diff --git a/src/shared/util.h b/src/shared/util.h index 219e4897b3..9aea3a4e50 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -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); |