diff options
author | harti <harti@FreeBSD.org> | 2004-12-17 13:20:19 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-12-17 13:20:19 +0000 |
commit | ebeffbcdeb1dbe7f6784d8aa322bbba797e7b07c (patch) | |
tree | 6eb76b042b6e1af4a0e99fe9fd18b8086748cbe0 /usr.bin/make/dir.c | |
parent | fbe42b3f98a3d07f38177307459c6bfaeca73aef (diff) | |
download | FreeBSD-src-ebeffbcdeb1dbe7f6784d8aa322bbba797e7b07c.zip FreeBSD-src-ebeffbcdeb1dbe7f6784d8aa322bbba797e7b07c.tar.gz |
Remove all the cleanup functions. There is no reason to free memory
just before exiting (especially given the number of memory leaks) -
it just costs time.
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r-- | usr.bin/make/dir.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c index c353629..6734b67 100644 --- a/usr.bin/make/dir.c +++ b/usr.bin/make/dir.c @@ -51,8 +51,6 @@ __FBSDID("$FreeBSD$"); * The interface for this module is: * Dir_Init Initialize the module. * - * Dir_End Cleanup the module. - * * Dir_HasWildcards Returns TRUE if the name given it needs to * be wildcard-expanded. * @@ -244,31 +242,6 @@ Dir_InitDot(void) /*- *----------------------------------------------------------------------- - * Dir_End -- - * cleanup things for this module - * - * Results: - * none - * - * Side Effects: - * none - *----------------------------------------------------------------------- - */ -void -Dir_End(void) -{ - - dot->refCount -= 1; - Dir_Destroy(dot); - Dir_ClearPath(&dirSearchPath); - Lst_Destroy(&dirSearchPath, NOFREE); - Dir_ClearPath(&openDirectories); - Lst_Destroy(&openDirectories, NOFREE); - Hash_DeleteTable(&mtimes); -} - -/*- - *----------------------------------------------------------------------- * DirFindName -- * See if the Path structure describes the same directory as the * given one by comparing their names. Called from Dir_AddDir via |