diff options
-rw-r--r-- | base/gssprintf.c | 19 | ||||
-rw-r--r-- | base/gssprintf.h | 5 |
2 files changed, 1 insertions, 23 deletions
diff --git a/base/gssprintf.c b/base/gssprintf.c index 2b24580e4..e2e1702ce 100644 --- a/base/gssprintf.c +++ b/base/gssprintf.c @@ -1472,25 +1472,6 @@ int gs_snprintf(char *buf, int len, return (cc == -1) ? (int)len - 1 : cc; } -int gs_sprintf(char *buf, const char *format, ...) -{ - int cc; - va_list ap; - apr_vformatter_buff_t vbuff; - - /* save one byte for nul terminator */ - vbuff.curpos = buf; - vbuff.endpos = buf + NUM_BUF_SIZE - 1; - - va_start(ap, format); - cc = apr_vformatter(snprintf_flush, &vbuff, format, ap); - va_end(ap); - *vbuff.curpos = '\0'; - - return cc; -} - - int gs_vsnprintf(char *buf, int len, const char *format, va_list ap) { diff --git a/base/gssprintf.h b/base/gssprintf.h index 0b5f6d3dd..961a68b9f 100644 --- a/base/gssprintf.h +++ b/base/gssprintf.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2021 Artifex Software, Inc. +/* Copyright (C) 2001-2022 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -28,8 +28,5 @@ int gs_vsprintf(char *zBuf, const char *zFormat, va_list ap); int -gs_sprintf(char *zBuf, const char *zFormat, ...); - -int gs_sscanf(char *buf, const char *format, ...); #endif |