Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): remove redundant comment from main_Rea...



details:   https://anonhg.NetBSD.org/src/rev/ea58149718a6
branches:  trunk
changeset: 956849:ea58149718a6
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Nov 08 14:19:15 2020 +0000

description:
make(1): remove redundant comment from main_ReadFiles

The code has become so simple that it made the comment redundant.

diffstat:

 usr.bin/make/main.c |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r e1f336b1de55 -r ea58149718a6 usr.bin/make/main.c
--- a/usr.bin/make/main.c       Sun Nov 08 14:16:59 2020 +0000
+++ b/usr.bin/make/main.c       Sun Nov 08 14:19:15 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.451 2020/11/08 13:10:30 rillig Exp $        */
+/*     $NetBSD: main.c,v 1.452 2020/11/08 14:19:15 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -109,7 +109,7 @@
 #include "trace.h"
 
 /*     "@(#)main.c     8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: main.c,v 1.451 2020/11/08 13:10:30 rillig Exp $");
+MAKE_RCSID("$NetBSD: main.c,v 1.452 2020/11/08 14:19:15 rillig Exp $");
 #if defined(MAKE_NATIVE) && !defined(lint)
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993 "
            "The Regents of the University of California.  "
@@ -1521,13 +1521,10 @@
 static void
 main_ReadFiles(void)
 {
-       /*
-        * Read in the built-in rules first, followed by the specified
-        * makefiles, or the default makefile and Makefile, in that order,
-        * if no makefiles were given on the command line.
-        */
+
        if (!opts.noBuiltins)
                ReadBuiltinRules();
+
        if (!Lst_IsEmpty(opts.makefiles))
                ReadAllMakefiles(opts.makefiles);
        else



Home | Main Index | Thread Index | Old Index