-rw-r--r-- | agg-plot/string_printf.cpp | 24 |
diff --git a/agg-plot/string_printf.cpp b/agg-plot/string_printf.cpp deleted file mode 100644 index 884550bd..00000000 --- a/agg-plot/string_printf.cpp +++ /dev/null @@ -1,24 +0,0 @@ - -#include <string> -#include <stdarg.h> - -void -string_printf (std::string &s, const char *fmt, ...) -{ - va_list ap; - char *buf; - int n; - - va_start (ap, fmt); - - n = vasprintf (&buf, fmt, ap); - if (n <= 0) - { - s = ""; - return; - } - - s = (const char *) buf; - free (buf); - va_end (ap); -} |