]> err.no Git - systemd/commitdiff
mount: drop unused function
authorLennart Poettering <lennart@poettering.net>
Tue, 22 May 2012 17:50:10 +0000 (19:50 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 May 2012 17:50:10 +0000 (19:50 +0200)
src/core/mount.c
src/system-update-generator/system-update-generator.c

index e8f8856414b615571acbd83fa4f5ad9e830181c2..11ac692c6cfa48ab57a3a25e368abc4d822e8a79 100644 (file)
@@ -1451,27 +1451,6 @@ fail:
         return r;
 }
 
-static int mount_find_pri(char *options) {
-        char *end, *pri;
-        unsigned long r;
-
-        if (!(pri = mount_test_option(options, "pri")))
-                return 0;
-
-        pri += 4;
-
-        errno = 0;
-        r = strtoul(pri, &end, 10);
-
-        if (errno != 0)
-                return -errno;
-
-        if (end == pri || (*end != ',' && *end != 0))
-                return -EINVAL;
-
-        return (int) r;
-}
-
 static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) {
         int r = 0;
         unsigned i;
index 0cfccfb494bc3a96a4d4544cc2ade813ab408b66..30fdbc3ee8cda3bfb1283493398016b94992a3cd 100644 (file)
 #include "unit-name.h"
 #include "path-util.h"
 
+/*
+ * Implements the logic described in
+ * http://freedesktop.org/wiki/Software/systemd/SystemUpdates
+ */
+
 static const char *arg_dest = "/tmp";
 
 static int generate_symlink(void) {