summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch/mips
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>2002-10-11 19:08:41 +0000
committermarc <marc@openbsd.org>2002-10-11 19:08:41 +0000
commit1f4ce5dc7acde00f0b735b78b57ebf272b574373 (patch)
tree39a633a5cb5d6a23fb36506056df16620fe9644e /lib/libpthread/arch/mips
parentadd two missing ones, correct four others -- noticed by Number Six (diff)
downloadwireguard-openbsd-1f4ce5dc7acde00f0b735b78b57ebf272b574373.tar.xz
wireguard-openbsd-1f4ce5dc7acde00f0b735b78b57ebf272b574373.zip
remove unused/unreferenced code.
ok fgs@
Diffstat (limited to 'lib/libpthread/arch/mips')
-rw-r--r--lib/libpthread/arch/mips/_atomic_lock.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/libpthread/arch/mips/_atomic_lock.c b/lib/libpthread/arch/mips/_atomic_lock.c
index 7c075f95e14..8eec2084c82 100644
--- a/lib/libpthread/arch/mips/_atomic_lock.c
+++ b/lib/libpthread/arch/mips/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.6 1999/02/02 01:36:00 imp Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.7 2002/10/11 19:08:41 marc Exp $ */
/*
* Atomic lock for mips
*/
@@ -53,14 +53,3 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
return (_thread_slow_atomic_lock(lock));
#endif
}
-
-int
-_atomic_is_locked(volatile _spinlock_lock_t *lock)
-{
-
-#if __mips >= 2
- return (*lock != _SPINLOCK_UNLOCKED);
-#else
- return (_thread_slow_atomic_is_locked(lock));
-#endif
-}