mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
remove unused code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5065974158
commit
3f94a2ef6b
4 changed files with 8 additions and 36 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2011-02-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/GSPrivate.h:
|
||||||
|
* Source/NSObject.m:
|
||||||
|
* Source/Additions/NSObject+GNUstepBase.m:
|
||||||
|
Remove (unused) code for cleanup at program exit. Let's think of a
|
||||||
|
better way (eg runtime support to call a +atExit method).
|
||||||
|
|
||||||
2011-02-11 Richard Frith-Macdonald <rfm@gnu.org>
|
2011-02-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSThread.m: Avoid some unnecessary locking.
|
* Source/NSThread.m: Avoid some unnecessary locking.
|
||||||
|
|
|
@ -122,8 +122,3 @@
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
/* See ../GSPrivate.h for details.
|
|
||||||
*/
|
|
||||||
#import "GSPrivate.h"
|
|
||||||
BaseCacheStruct GSBaseCache = { };
|
|
||||||
|
|
||||||
|
|
|
@ -543,32 +543,5 @@ GSPrivateIsCollectable(const void *ptr) GS_ATTRIB_PRIVATE;
|
||||||
NSZone*
|
NSZone*
|
||||||
GSAtomicMallocZone (void);
|
GSAtomicMallocZone (void);
|
||||||
|
|
||||||
/* NB ... this is a placeholder for future cleanups of the code!
|
|
||||||
*
|
|
||||||
* GSBaseCache is a structure in which base library classes may cache private
|
|
||||||
* information expected to be present for the lifetime of the process.
|
|
||||||
*
|
|
||||||
* The NSObject class registers the BSBaseCacheCleanup() function to be called
|
|
||||||
* to clean it up on process termination, but we actually keep the cleanup
|
|
||||||
* code here so we can easily update it in sync with the structure definition.
|
|
||||||
*
|
|
||||||
* This structure is actually implemented in Additions/NSObject+GNUstepBase.m
|
|
||||||
* so that it can be accessed from the base-additions library as well as the
|
|
||||||
* base library.
|
|
||||||
*/
|
|
||||||
typedef struct {
|
|
||||||
// Add fields to hold cached values here
|
|
||||||
} BaseCacheStruct;
|
|
||||||
BaseCacheStruct GSBaseCache GS_ATTRIB_PRIVATE;
|
|
||||||
|
|
||||||
#if defined(IN_NSOBJECT_M)
|
|
||||||
static void
|
|
||||||
GSBaseCacheCleanup(void)
|
|
||||||
{
|
|
||||||
// Add code to clean up cached values here
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GSPrivate_h_ */
|
#endif /* _GSPrivate_h_ */
|
||||||
|
|
||||||
|
|
|
@ -953,10 +953,6 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Cleanup cached information on exit.
|
|
||||||
*/
|
|
||||||
atexit(GSBaseCacheCleanup);
|
|
||||||
|
|
||||||
#ifdef HAVE_LOCALE_H
|
#ifdef HAVE_LOCALE_H
|
||||||
GSSetLocaleC(LC_ALL, ""); // Set up locale from environment.
|
GSSetLocaleC(LC_ALL, ""); // Set up locale from environment.
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue