Skip to contentSkip to conversation

fdisk: remove dead code

PATCH Applied Davidlohr Bueso 2 participants 2 messages Apr 16, 2012 – Apr 23, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 4/8 fdisk: remove dead code

From: Davidlohr Bueso <[email protected]>

---
 fdisk/fdisk.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
fdisk/fdisk.c +0 -20
index 1c0d7d8..f4b33d2 100644
@@ -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();
 
Signature · 1 line
1.7.4.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Davidlohr Bueso

fdisk/fdisk.c | 20 --------------------

1 files changed, 0 insertions(+), 20 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com