summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-11-05 05:32:04 +0000
committerkientzle <kientzle@FreeBSD.org>2004-11-05 05:32:04 +0000
commit343d17a8c0e316015939dafe222020c58a03302b (patch)
tree34a7a67a006e1c49f592a1234b22ffff1b5f2028 /lib/libarchive
parent9b557730b5b9a968950c5837eda20d3d0f775ffb (diff)
downloadFreeBSD-src-343d17a8c0e316015939dafe222020c58a03302b.zip
FreeBSD-src-343d17a8c0e316015939dafe222020c58a03302b.tar.gz
Remove the unused archive_string_sprintf() utility function.
Diffstat (limited to 'lib/libarchive')
-rw-r--r--lib/libarchive/archive_string.h5
-rw-r--r--lib/libarchive/archive_string_sprintf.c13
2 files changed, 0 insertions, 18 deletions
diff --git a/lib/libarchive/archive_string.h b/lib/libarchive/archive_string.h
index 1c6e8b1..79597df 100644
--- a/lib/libarchive/archive_string.h
+++ b/lib/libarchive/archive_string.h
@@ -104,9 +104,4 @@ void __archive_string_vsprintf(struct archive_string *, const char *,
va_list);
#define archive_string_vsprintf __archive_string_vsprintf
-/* Like 'sprintf', but resizes the underlying string as necessary. */
-void __archive_string_sprintf(struct archive_string *, const char *, ...);
-#define archive_string_sprintf __archive_string_sprintf
-
-
#endif
diff --git a/lib/libarchive/archive_string_sprintf.c b/lib/libarchive/archive_string_sprintf.c
index b191b4b..d5e8d86 100644
--- a/lib/libarchive/archive_string_sprintf.c
+++ b/lib/libarchive/archive_string_sprintf.c
@@ -64,16 +64,3 @@ __archive_string_vsprintf(struct archive_string *as, const char *fmt,
as->length = l;
va_end(ap1);
}
-
-/*
- * Corresponding 'sprintf' interface.
- */
-void
-__archive_string_sprintf(struct archive_string *as, const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- __archive_string_vsprintf(as, fmt, ap);
- va_end(ap);
-}
OpenPOWER on IntegriCloud