From a1df9c9d4e8908ef5942ca0d58ee490352930c5b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 30 Aug 2016 11:22:30 +0200 Subject: [PATCH] libblkid: remove unused function Signed-off-by: Karel Zak --- libblkid/src/blkidP.h | 2 -- libblkid/src/probe.c | 9 --------- 2 files changed, 11 deletions(-) diff --git a/libblkid/src/blkidP.h b/libblkid/src/blkidP.h index 289bb07aa7..817c8b02b5 100644 --- a/libblkid/src/blkidP.h +++ b/libblkid/src/blkidP.h @@ -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)); diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 43ea4c741e..f2b3f93482 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -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; -- 2.47.3