Module Name:    src
Committed By:   martin
Date:           Wed Oct 14 13:20:27 UTC 2020

Modified Files:
        src/usr.sbin/sysinst: install.c

Log Message:
Remove dead code


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/sysinst/install.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/install.c
diff -u src/usr.sbin/sysinst/install.c:1.18 src/usr.sbin/sysinst/install.c:1.19
--- src/usr.sbin/sysinst/install.c:1.18	Mon Oct 12 16:14:32 2020
+++ src/usr.sbin/sysinst/install.c	Wed Oct 14 13:20:27 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: install.c,v 1.18 2020/10/12 16:14:32 martin Exp $	*/
+/*	$NetBSD: install.c,v 1.19 2020/10/14 13:20:27 martin Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -155,7 +155,6 @@ do_install(void)
 	int find_disks_ret;
 	int retcode = 0, res;
 	struct install_partition_desc install = {};
-	struct disk_partitions *parts;
 
 #ifndef NO_PARTMAN
 	partman_go = -1;
@@ -216,21 +215,6 @@ do_install(void)
 		if (!ask_noyes(NULL))
 			goto error;
 
-		/*
-		 * Check if we have a secondary partitioning and
-		 * use that if available. The MD code will typically
-		 * have written the outer partitioning in md_pre_disklabel.
-		 */
-		parts = pm->parts;
-		if (!pm->no_part && parts != NULL) {
-			if (parts->pscheme->secondary_scheme != NULL &&
-			    parts->pscheme->secondary_partitions != NULL) {
-				parts = parts->pscheme->secondary_partitions(
-				    parts, pm->ptstart, false);
-				if (parts == NULL)
-					parts = pm->parts;
-			}
-		}
 		if ((!pm->no_part && !write_all_parts(&install)) ||
 		    make_filesystems(&install) ||
 		    make_fstab(&install) != 0 ||

Reply via email to