Module Name:    src
Committed By:   rillig
Date:           Sun Aug 23 17:04:21 UTC 2020

Modified Files:
        src/usr.bin/make: lst.h make.h metachar.h

Log Message:
make(1): remove unused declarations from header files


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.bin/make/lst.h
cvs rdiff -u -r1.124 -r1.125 src/usr.bin/make/make.h
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/metachar.h

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

Modified files:

Index: src/usr.bin/make/lst.h
diff -u src/usr.bin/make/lst.h:1.42 src/usr.bin/make/lst.h:1.43
--- src/usr.bin/make/lst.h:1.42	Sun Aug 23 16:59:44 2020
+++ src/usr.bin/make/lst.h	Sun Aug 23 17:04:21 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: lst.h,v 1.42 2020/08/23 16:59:44 rillig Exp $	*/
+/*	$NetBSD: lst.h,v 1.43 2020/08/23 17:04:21 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -115,7 +115,6 @@ Boolean		Lst_IsEmpty(Lst);
 /* Insert an element before another */
 void		Lst_InsertBeforeS(Lst, LstNode, void *);
 /* Place an element at the front of a lst. */
-ReturnStatus	Lst_AtFront(Lst, void *);
 void		Lst_PrependS(Lst, void *);
 /* Place an element at the end of a lst. */
 void		Lst_AppendS(Lst, void *);

Index: src/usr.bin/make/make.h
diff -u src/usr.bin/make/make.h:1.124 src/usr.bin/make/make.h:1.125
--- src/usr.bin/make/make.h:1.124	Sun Aug 23 08:26:03 2020
+++ src/usr.bin/make/make.h	Sun Aug 23 17:04:21 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: make.h,v 1.124 2020/08/23 08:26:03 rillig Exp $	*/
+/*	$NetBSD: make.h,v 1.125 2020/08/23 17:04:21 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -420,7 +420,6 @@ extern GNode	*VAR_INTERNAL;	/* Variables
 extern GNode    *VAR_GLOBAL;   	/* Variables defined in a global context, e.g
 				 * in the Makefile itself */
 extern GNode    *VAR_CMD;    	/* Variables defined on the command line */
-extern GNode	*VAR_FOR;	/* Iteration variables */
 extern char    	var_Error[];   	/* Value returned by Var_Parse when an error
 				 * is encountered. It actually points to
 				 * an empty string, so naive callers needn't

Index: src/usr.bin/make/metachar.h
diff -u src/usr.bin/make/metachar.h:1.5 src/usr.bin/make/metachar.h:1.6
--- src/usr.bin/make/metachar.h:1.5	Thu Aug 13 03:54:57 2020
+++ src/usr.bin/make/metachar.h	Sun Aug 23 17:04:21 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: metachar.h,v 1.5 2020/08/13 03:54:57 rillig Exp $	*/
+/*	$NetBSD: metachar.h,v 1.6 2020/08/23 17:04:21 rillig Exp $	*/
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -38,15 +38,6 @@ extern unsigned char _metachar[];
 #define ismeta(c)	_metachar[(c) & 0x7f]
 
 static inline int
-hasmeta(const char *cmd)
-{
-	while (!ismeta(*cmd))
-		cmd++;
-
-	return *cmd != '\0';
-}
-
-static inline int
 needshell(const char *cmd, int white)
 {
 	while (!ismeta(*cmd) && *cmd != ':' && *cmd != '=') {

Reply via email to