summaryrefslogtreecommitdiff
path: root/src/test/test-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-11 16:45:15 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-11 17:16:07 +0100
commitc50e4f95d8cfcd21bde2b0d1ff24b4de8fef4976 (patch)
tree72dc3520c924b565724055d852b673c6db140e07 /src/test/test-util.c
parenteb91eb187b7491e05fb95215b77cb62061f41d08 (diff)
downloadsystemd-c50e4f95d8cfcd21bde2b0d1ff24b4de8fef4976.tar.gz
util: drop parse_user_at_host() since its unused now
Diffstat (limited to 'src/test/test-util.c')
-rw-r--r--src/test/test-util.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c
index 9d6f4be502..cbd60d68f7 100644
--- a/src/test/test-util.c
+++ b/src/test/test-util.c
@@ -490,21 +490,6 @@ static void test_strrep(void) {
assert_se(streq(zero, ""));
}
-static void test_parse_user_at_host(void) {
- _cleanup_free_ char *both = strdup("waldo@waldoscomputer");
- _cleanup_free_ char *onlyhost = strdup("mikescomputer");
- char *user = NULL, *host = NULL;
-
- parse_user_at_host(both, &user, &host);
- assert_se(streq(user, "waldo"));
- assert_se(streq(host, "waldoscomputer"));
-
- user = host = NULL;
- parse_user_at_host(onlyhost, &user, &host);
- assert_se(user == NULL);
- assert_se(streq(host, "mikescomputer"));
-}
-
static void test_split_pair(void) {
_cleanup_free_ char *a = NULL, *b = NULL;
@@ -635,7 +620,6 @@ int main(int argc, char *argv[]) {
test_parse_bytes();
test_strextend();
test_strrep();
- test_parse_user_at_host();
test_split_pair();
test_fstab_node_to_udev_node();
test_get_files_in_directory();