mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Remove unused function
PQExpBuffers used to generate SQL, no need to worry about maximum query length and more flexible for generating dynamic queries.
This commit is contained in:
13
strutil.c
13
strutil.c
@@ -35,19 +35,6 @@ xvsnprintf(char *str, size_t size, const char *format, va_list ap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
|
||||||
sqlquery_snprintf(char *str, const char *format,...)
|
|
||||||
{
|
|
||||||
va_list arglist;
|
|
||||||
int retval;
|
|
||||||
|
|
||||||
va_start(arglist, format);
|
|
||||||
retval = xvsnprintf(str, MAX_QUERY_LEN, format, arglist);
|
|
||||||
va_end(arglist);
|
|
||||||
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
maxlen_snprintf(char *str, const char *format,...)
|
maxlen_snprintf(char *str, const char *format,...)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,10 +32,6 @@ typedef struct ItemList
|
|||||||
} ItemList;
|
} ItemList;
|
||||||
|
|
||||||
|
|
||||||
extern int
|
|
||||||
sqlquery_snprintf(char *str, const char *format,...)
|
|
||||||
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
|
|
||||||
|
|
||||||
extern int
|
extern int
|
||||||
maxlen_snprintf(char *str, const char *format,...)
|
maxlen_snprintf(char *str, const char *format,...)
|
||||||
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
|
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
|
||||||
|
|||||||
Reference in New Issue
Block a user