]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove dead code
authorDavidlohr Bueso <dave@gnu.org>
Mon, 23 Apr 2012 10:40:20 +0000 (12:40 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Apr 2012 10:40:20 +0000 (12:40 +0200)
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
fdisk/fdisk.c

index ab4845895c245cbceb11d3c821fdb6cbf4cedb21..337e5f7e6a742ce501b4aa35dc7aaa8e858835cc 100644 (file)
@@ -1729,25 +1729,10 @@ static void check_consistency(struct partition *p, int partition) {
                printf(_("logical=(%d, %d, %d)\n"),lec, leh, les);
        }
 
-#if 0
-/* Beginning on cylinder boundary? */
-       if (pbh != !pbc || pbs != 1) {
-               printf(_("Partition %i does not start on cylinder "
-                       "boundary:\n"), partition + 1);
-               printf(_("     phys=(%d, %d, %d) "), pbc, pbh, pbs);
-               printf(_("should be (%d, %d, 1)\n"), pbc, !pbc);
-       }
-#endif
-
 /* Ending on cylinder boundary? */
        if (peh != (heads - 1) || pes != sectors) {
                printf(_("Partition %i does not end on cylinder boundary.\n"),
                        partition + 1);
-#if 0
-               printf(_("     phys=(%d, %d, %d) "), pec, peh, pes);
-               printf(_("should be (%d, %d, %d)\n"),
-               pec, heads - 1, sectors);
-#endif
        }
 }
 
@@ -2966,14 +2951,9 @@ main(int argc, char **argv) {
                }
        }
 
-#if 0
-       printf(_("This kernel finds the sector size itself - "
-                "-b option ignored\n"));
-#else
        if (user_set_sector_size && argc-optind != 1)
                printf(_("Warning: the -b (set sector size) option should"
                         " be used with one specified device\n"));
-#endif
 
        init_mbr_buffer();