diff options
author | harti <harti@FreeBSD.org> | 2004-12-10 10:13:40 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-12-10 10:13:40 +0000 |
commit | db4fd70037c132dc9adbddf06b51c7bc2decf082 (patch) | |
tree | 0641e4a466eb7f4d0174b86809d00b4ccd569998 /usr.bin/make/parse.c | |
parent | 16a5d8193f49035546afed8c166c4548d208f9ee (diff) | |
download | FreeBSD-src-db4fd70037c132dc9adbddf06b51c7bc2decf082.zip FreeBSD-src-db4fd70037c132dc9adbddf06b51c7bc2decf082.tar.gz |
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?
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r-- | usr.bin/make/parse.c | 4 |
1 files changed, 0 insertions, 4 deletions
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); |