mirror of
https://github.com/postgres/postgres.git
synced 2025-11-13 16:22:44 +03:00
Make functions static or NOT_USED as appropriate.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Edmund Mergl <E.Mergl@bawue.de>
|
||||
*
|
||||
* $Id: oracle_compat.c,v 1.17 1999/02/21 03:49:32 scrappy Exp $
|
||||
* $Id: oracle_compat.c,v 1.18 1999/05/26 12:56:00 momjian Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -472,6 +472,7 @@ rtrim(text *string, text *set)
|
||||
*
|
||||
********************************************************************/
|
||||
|
||||
#ifdef NOT_USED
|
||||
text *
|
||||
substr(text *string, int4 m, int4 n)
|
||||
{
|
||||
@@ -498,7 +499,7 @@ substr(text *string, int4 m, int4 n)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/********************************************************************
|
||||
*
|
||||
|
||||
@@ -131,6 +131,7 @@ tprintf(int flag, const char *fmt,...)
|
||||
/*
|
||||
* Print a timestamp and a message to stdout or to syslog.
|
||||
*/
|
||||
#ifdef NOT_USED
|
||||
int
|
||||
tprintf1(const char *fmt,...)
|
||||
{
|
||||
@@ -156,6 +157,7 @@ tprintf1(const char *fmt,...)
|
||||
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Print a timestamp and a message to stderr.
|
||||
@@ -237,7 +239,8 @@ tprintf_timestamp()
|
||||
|
||||
#endif
|
||||
|
||||
int
|
||||
#ifdef NOT_USED
|
||||
static int
|
||||
option_flag(int flag)
|
||||
{
|
||||
if ((flag < 0) || (flag >= NUM_PG_OPTIONS))
|
||||
@@ -254,6 +257,7 @@ set_option_flag(int flag, int value)
|
||||
pg_options[flag] = value;
|
||||
return value;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Parse an option string like "name,name+,name-,name=value".
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.12 1999/05/25 16:12:54 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.13 1999/05/26 12:56:05 momjian Exp $
|
||||
*
|
||||
* NOTE
|
||||
* XXX This is a preliminary implementation which lacks fail-fast
|
||||
@@ -52,11 +52,13 @@ OrderedSetInit(OrderedSet set, Offset offset)
|
||||
* OrderedSetContains
|
||||
* True iff ordered set contains given element.
|
||||
*/
|
||||
#ifdef NOT_USED
|
||||
bool
|
||||
OrderedSetContains(OrderedSet set, OrderedElem elem)
|
||||
{
|
||||
return (bool) (elem->set == set && (elem->next || elem->prev));
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* OrderedSetGetHead
|
||||
|
||||
Reference in New Issue
Block a user