From owner-svn-src-all@FreeBSD.ORG Thu Aug 26 09:04:27 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBD301065675; Thu, 26 Aug 2010 09:04:27 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B14848FC1A; Thu, 26 Aug 2010 09:04:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7Q94Rgv037089; Thu, 26 Aug 2010 09:04:27 GMT (envelope-from davidxu@svn.freebsd.org) Received: (from davidxu@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7Q94R2t037086; Thu, 26 Aug 2010 09:04:27 GMT (envelope-from davidxu@svn.freebsd.org) Message-Id: <201008260904.o7Q94R2t037086@svn.freebsd.org> From: David Xu Date: Thu, 26 Aug 2010 09:04:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211836 - head/lib/libthr/thread X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 09:04:28 -0000 Author: davidxu Date: Thu Aug 26 09:04:27 2010 New Revision: 211836 URL: http://svn.freebsd.org/changeset/base/211836 Log: eliminate unused code. Modified: head/lib/libthr/thread/thr_exit.c head/lib/libthr/thread/thr_private.h Modified: head/lib/libthr/thread/thr_exit.c ============================================================================== --- head/lib/libthr/thread/thr_exit.c Thu Aug 26 07:57:45 2010 (r211835) +++ head/lib/libthr/thread/thr_exit.c Thu Aug 26 09:04:27 2010 (r211836) @@ -55,16 +55,6 @@ _thread_exit(const char *fname, int line 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) { Modified: head/lib/libthr/thread/thr_private.h ============================================================================== --- head/lib/libthr/thread/thr_private.h Thu Aug 26 07:57:45 2010 (r211835) +++ head/lib/libthr/thread/thr_private.h Thu Aug 26 09:04:27 2010 (r211836) @@ -623,7 +623,6 @@ void _mutex_fork(struct pthread *curthre 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 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 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);