diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-09-25 14:46:43 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-09-25 14:53:28 +0300 |
commit | 3d2b5a3250737d3674c73f9337cb10685eb8f306 (patch) | |
tree | 262c372cdbff3cd43519ff1da3f5009e71bc64df /kms++util | |
parent | 9340290f8f36c37e1903cf2ae9d13395338ded91 (diff) |
remove unused sformat()
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++util')
-rw-r--r-- | kms++util/inc/kms++util/strhelpers.h | 3 | ||||
-rw-r--r-- | kms++util/src/strhelpers.cpp | 14 |
2 files changed, 0 insertions, 17 deletions
diff --git a/kms++util/inc/kms++util/strhelpers.h b/kms++util/inc/kms++util/strhelpers.h index 2c540f3..2d35e93 100644 --- a/kms++util/inc/kms++util/strhelpers.h +++ b/kms++util/inc/kms++util/strhelpers.h @@ -28,6 +28,3 @@ std::string join(const std::vector<T>& values, const std::string& delim, std::fu } return ss.str(); } - -std::string sformat(const char *fmt, ...) - __attribute__ ((format (printf, 1, 2))); diff --git a/kms++util/src/strhelpers.cpp b/kms++util/src/strhelpers.cpp index f59bb6d..5eba2a9 100644 --- a/kms++util/src/strhelpers.cpp +++ b/kms++util/src/strhelpers.cpp @@ -11,17 +11,3 @@ string to_lower(const string& str) transform(data.begin(), data.end(), data.begin(), ::tolower); return data; } - -string sformat(const char *fmt, ...) -{ - static char s_format_buf[1024]; - - va_list args; - va_start(args, fmt); - - vsnprintf(s_format_buf, sizeof(s_format_buf), fmt, args); - - va_end(args); - - return string(s_format_buf); -} |