chiark / gitweb /
util: drop parse_user_at_host() since its unused now
[elogind.git] / src / shared / util.c
index f76ed6f563cf32eb2ef524e30a694e7d12e3a4dd..21edd3ac2f38ab47e5c3453e626f4171ba557d72 100644 (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;