Skip to content

Commit 671c4ea

Browse files
committed
Remove unused spin function when no spinlocks.
1 parent d37e93a commit 671c4ea

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/backend/storage/ipc/spin.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.5 1997/08/19 21:33:08 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/Attic/spin.c,v 1.6 1997/08/21 13:43:46 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -99,20 +99,6 @@ SpinRelease(SPINLOCK lock)
9999
static bool AttachSpinLocks(IPCKey key);
100100
static bool SpinIsLocked(SPINLOCK lock);
101101

102-
103-
static bool
104-
AttachSpinLocks(IPCKey key)
105-
{
106-
/* the spin lock shared memory must have been attached by now */
107-
return(TRUE);
108-
}
109-
110-
static bool
111-
SpinIsLocked(SPINLOCK lock)
112-
{
113-
return(!LockIsFree(lock));
114-
}
115-
116102
/*
117103
* SpinAcquire -- try to grab a spinlock
118104
*

0 commit comments

Comments
 (0)