Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst Remove dead code



details:   https://anonhg.NetBSD.org/src/rev/cf73de118840
branches:  trunk
changeset: 1015108:cf73de118840
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Oct 14 13:20:27 2020 +0000

description:
Remove dead code

diffstat:

 usr.sbin/sysinst/install.c |  18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)

diffs (39 lines):

diff -r e62651465102 -r cf73de118840 usr.sbin/sysinst/install.c
--- a/usr.sbin/sysinst/install.c        Wed Oct 14 10:26:59 2020 +0000
+++ b/usr.sbin/sysinst/install.c        Wed Oct 14 13:20:27 2020 +0000
@@ -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 @@
        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 @@
                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 ||



Home | Main Index | Thread Index | Old Index