From acd2601bd7f43c4612363f4366414d21a33b4994 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Mon, 11 Apr 2022 13:35:25 +0200 Subject: [PATCH] Drop unused code in lib/utils_blkid.c --- lib/utils_blkid.c | 14 -------------- lib/utils_blkid.h | 2 -- 2 files changed, 16 deletions(-) diff --git a/lib/utils_blkid.c b/lib/utils_blkid.c index 6ffbc34c..e0952ede 100644 --- a/lib/utils_blkid.c +++ b/lib/utils_blkid.c @@ -326,17 +326,3 @@ int blk_supported(void) #endif return r; } - -off_t blk_get_offset(struct blkid_handle *h) -{ - off_t offset_value = -1; -#ifdef HAVE_BLKID - const char *offset; - if (blk_is_superblock(h)) { - if (!blkid_probe_lookup_value(h->pr, "SBMAGIC_OFFSET", &offset, NULL)) - offset_value = strtoll(offset, NULL, 10); - } else if (blk_is_partition(h) && !blkid_probe_lookup_value(h->pr, "PTMAGIC_OFFSET", &offset, NULL)) - offset_value = strtoll(offset, NULL, 10); -#endif - return offset_value; -} diff --git a/lib/utils_blkid.h b/lib/utils_blkid.h index 60f3b6a2..7ed6319d 100644 --- a/lib/utils_blkid.h +++ b/lib/utils_blkid.h @@ -62,6 +62,4 @@ int blk_do_wipe(struct blkid_handle *h); int blk_supported(void); -off_t blk_get_offset(struct blkid_handle *h); - #endif