eliminate unused code.

This commit is contained in:
David Xu 2010-08-26 09:04:27 +00:00
parent 6b932eca79
commit 1ac3d5022c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211836
2 changed files with 0 additions and 17 deletions

View File

@ -55,16 +55,6 @@ _thread_exit(const char *fname, int lineno, const char *msg)
abort();
}
/*
* Only called when a thread is cancelled. It may be more useful
* to call it from pthread_exit() if other ways of asynchronous or
* abnormal thread termination can be found.
*/
void
_thr_exit_cleanup(void)
{
}
void
_pthread_exit(void *status)
{
@ -84,8 +74,6 @@ _pthread_exit(void *status)
curthread->cancel_enable = 0;
curthread->cancel_async = 0;
_thr_exit_cleanup();
/* Save the return value: */
curthread->ret = status;
while (curthread->cleanup != NULL) {

View File

@ -623,7 +623,6 @@ void _mutex_fork(struct pthread *curthread) __hidden;
void _libpthread_init(struct pthread *) __hidden;
struct pthread *_thr_alloc(struct pthread *) __hidden;
void _thread_exit(const char *, int, const char *) __hidden __dead2;
void _thr_exit_cleanup(void) __hidden;
int _thr_ref_add(struct pthread *, struct pthread *, int) __hidden;
void _thr_ref_delete(struct pthread *, struct pthread *) __hidden;
void _thr_ref_delete_unlocked(struct pthread *, struct pthread *) __hidden;
@ -635,7 +634,6 @@ void _thr_stack_free(struct pthread_attr *) __hidden;
void _thr_free(struct pthread *, struct pthread *) __hidden;
void _thr_gc(struct pthread *) __hidden;
void _thread_cleanupspecific(void) __hidden;
void _thread_dump_info(void) __hidden;
void _thread_printf(int, const char *, ...) __hidden;
void _thr_spinlock_init(void) __hidden;
void _thr_cancel_enter(struct pthread *) __hidden;
@ -671,9 +669,6 @@ int _schedparam_to_rtp(int policy, const struct sched_param *param,
void _thread_bp_create(void);
void _thread_bp_death(void);
int _sched_yield(void);
void _thr_sem_prefork(void);
void _thr_sem_postfork(void);
void _thr_sem_child_postfork(void);
void _pthread_cleanup_push(void (*)(void *), void *);
void _pthread_cleanup_pop(int);