From db4fd70037c132dc9adbddf06b51c7bc2decf082 Mon Sep 17 00:00:00 2001 From: harti Date: Fri, 10 Dec 2004 10:13:40 +0000 Subject: Remove a useless list where just all command lines are stuffed onto, never used and just freed at the end. The idea might have been to be able to free all the strings, but what's the point to free just before exiting? --- usr.bin/make/parse.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'usr.bin/make/parse.c') diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 34df8ef..a945571 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -102,7 +102,6 @@ __FBSDID("$FreeBSD$"); #define CONTINUE 1 #define DONE 0 static Lst *targets; /* targets we're working on */ -static Lst *targCmds; /* command lines for targets */ static Boolean inLine; /* true if currently in a dependency * line or its commands */ static int fatals = 0; @@ -2445,7 +2444,6 @@ Parse_File(char *name, FILE *stream) * commands of all targets in the dependency spec */ Lst_ForEach(targets, ParseAddCmd, cp); - Lst_AtEnd(targCmds, line); continue; } else { Parse_Error(PARSE_FATAL, @@ -2543,14 +2541,12 @@ Parse_Init(void) parseIncPath = Lst_Init(); sysIncPath = Lst_Init(); includes = Lst_Init(); - targCmds = Lst_Init(); } void Parse_End(void) { - Lst_Destroy(targCmds, free); if (targets) Lst_Destroy(targets, NOFREE); Lst_Destroy(sysIncPath, Dir_Destroy); -- cgit v1.1