]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: (bsd) remove dead code
authorKarel Zak <kzak@redhat.com>
Wed, 10 Jul 2013 13:12:10 +0000 (15:12 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:47:06 +0000 (16:47 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdiskbsdlabel.c

index 28b683a3e1ab71390b1b73f2efec24d1bc41e8a8..3fbd746e4a9d5a0e867df9a53e48510b5ffb418d 100644 (file)
@@ -121,7 +121,6 @@ struct fdisk_bsd_label {
 
 
 static int xbsd_delete_part (struct fdisk_context *cxt, size_t partnum);
-static void xbsd_change_fstype (struct fdisk_context *cxt);
 static int xbsd_get_part_index (struct fdisk_context *cxt, int max, int *n);
 static int xbsd_check_new_partition (struct fdisk_context *cxt, int *i);
 static unsigned short xbsd_dkcksum (struct bsd_disklabel *lp);
@@ -612,24 +611,6 @@ done:
        return rc;
 }
 
-/* TODO: remove this, use regular change_partition_type() in fdisk.c */
-static void xbsd_change_fstype (struct fdisk_context *cxt)
-{
-  int i;
-  struct fdisk_parttype *t;
-  struct bsd_disklabel *d = self_disklabel(cxt);
-
-  if (xbsd_get_part_index(cxt, d->d_npartitions, &i))
-         return;
-  t = ask_partition_type(cxt);
-
-  if (t) {
-    d->d_partitions[i].p_fstype = t->type;
-    fdisk_free_parttype(t);
-    fdisk_label_set_changed(cxt->label, 1);
-  }
-}
-
 static int xbsd_get_part_index(struct fdisk_context *cxt, int max, int *n)
 {
        int c;