mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Mark functions as static and ifdef NOT_USED as appropriate.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.81 2000/05/19 03:22:28 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.82 2000/06/08 22:37:20 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -75,7 +75,6 @@ static void WaitIO(BufferDesc *buf, SPINLOCK spinlock);
|
||||
static void StartBufferIO(BufferDesc *buf, bool forInput);
|
||||
static void TerminateBufferIO(BufferDesc *buf);
|
||||
static void ContinueBufferIO(BufferDesc *buf, bool forInput);
|
||||
extern void InitBufferIO(void);
|
||||
extern void AbortBufferIO(void);
|
||||
|
||||
/*
|
||||
@@ -2488,11 +2487,13 @@ ContinueBufferIO(BufferDesc *buf, bool forInput)
|
||||
IsForInput = forInput;
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
void
|
||||
InitBufferIO(void)
|
||||
{
|
||||
InProgressBuf = (BufferDesc *) 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This function is called from ProcReleaseSpins().
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.5 2000/04/12 17:15:35 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.6 2000/06/08 22:37:22 momjian Exp $
|
||||
*
|
||||
* NOTES:
|
||||
*
|
||||
@@ -149,6 +149,7 @@ BufFileCreateTemp(void)
|
||||
return file;
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
/*
|
||||
* Create a BufFile and attach it to an already-opened virtual File.
|
||||
*
|
||||
@@ -161,6 +162,7 @@ BufFileCreate(File file)
|
||||
{
|
||||
return makeBufFile(file);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Close a BufFile
|
||||
@@ -529,12 +531,14 @@ BufFileSeek(BufFile *file, int fileno, long offset, int whence)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
void
|
||||
BufFileTell(BufFile *file, int *fileno, long *offset)
|
||||
{
|
||||
*fileno = file->curFile;
|
||||
*offset = file->curOffset + file->pos;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* BufFileSeekBlock --- block-oriented seek
|
||||
@@ -556,6 +560,7 @@ BufFileSeekBlock(BufFile *file, long blknum)
|
||||
SEEK_SET);
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
/*
|
||||
* BufFileTellBlock --- block-oriented tell
|
||||
*
|
||||
@@ -570,3 +575,5 @@ BufFileTellBlock(BufFile *file)
|
||||
blknum += file->curFile * RELSEG_SIZE;
|
||||
return blknum;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.40 2000/05/31 00:28:30 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.41 2000/06/08 22:37:24 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -227,6 +227,7 @@ XactLockTableInsert(TransactionId xid)
|
||||
elog(ERROR, "XactLockTableInsert: LockAcquire failed");
|
||||
}
|
||||
|
||||
#ifdef NOT_USED
|
||||
void
|
||||
XactLockTableDelete(TransactionId xid)
|
||||
{
|
||||
@@ -242,6 +243,7 @@ XactLockTableDelete(TransactionId xid)
|
||||
|
||||
LockRelease(LockTableId, &tag, ExclusiveLock);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
XactLockTableWait(TransactionId xid)
|
||||
|
||||
Reference in New Issue
Block a user