]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: (sun) remove dead code
authorKarel Zak <kzak@redhat.com>
Tue, 23 Apr 2013 13:25:53 +0000 (15:25 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:46:53 +0000 (16:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisksunlabel.c
fdisks/fdisksunlabel.h

index 97819af5943a87f8607314c1dfe0081ca9252daf..085ca691c7e7e44583748f0a9306f9b8f671590b 100644 (file)
@@ -73,14 +73,6 @@ static inline struct fdisk_sun_label *self_label(struct fdisk_context *cxt)
        return (struct fdisk_sun_label *) cxt->label;
 }
 
-int sun_is_empty_type(struct fdisk_context *cxt, size_t i)
-{
-       struct sun_disklabel *sunlabel = self_disklabel(cxt);
-
-       return (!sunlabel->partitions[i].num_sectors ||
-               !sunlabel->vtoc.infos[i].id);
-}
-
 static void set_sun_partition(struct fdisk_context *cxt, size_t i,
                uint32_t start,uint32_t stop, uint16_t sysid)
 {
index ab67be573649e0be3fd9a4513317703e89e39464..9487be3c793c67976707448b4f8eb155ee58c30e 100644 (file)
@@ -13,6 +13,5 @@ extern void fdisk_sun_set_pcylcount(struct fdisk_context *cxt);
 
 /* fdisksunlabel.c */
 extern void sun_list_table(struct fdisk_context *cxt, int xtra);
-extern int sun_is_empty_type(struct fdisk_context *cxt, size_t i);
 
 #endif /* FDISK_SUN_LABEL_H */