]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: remove unused function
authorKarel Zak <kzak@redhat.com>
Tue, 30 Aug 2016 09:22:30 +0000 (11:22 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 30 Aug 2016 09:22:30 +0000 (11:22 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/blkidP.h
libblkid/src/probe.c

index 289bb07aa770df77d680c43bc82679c4c1f04890..817c8b02b596bdc742ce0c6b38623a94bd54b03a 100644 (file)
@@ -443,8 +443,6 @@ extern struct blkid_chain *blkid_probe_get_chain(blkid_probe pr)
                        __attribute__((nonnull))
                        __attribute__((warn_unused_result));
 
-extern struct blkid_prval *blkid_probe_last_value(blkid_probe pr);
-
 extern struct blkid_prval *__blkid_probe_get_value(blkid_probe pr, int num)
                        __attribute__((nonnull))
                        __attribute__((warn_unused_result));
index 43ea4c741ed726d5b643cca204f0a65d02da92dc..f2b3f9348252194bf2b96831de38a9c901e9df35 100644 (file)
@@ -1765,15 +1765,6 @@ int blkid_probe_has_value(blkid_probe pr, const char *name)
        return 0;
 }
 
-struct blkid_prval *blkid_probe_last_value(blkid_probe pr)
-{
-       if (list_empty(&pr->values))
-               return NULL;
-
-       return list_last_entry(&pr->values, struct blkid_prval, prvals);
-}
-
-
 struct blkid_prval *__blkid_probe_get_value(blkid_probe pr, int num)
 {
        int i = 0;