diff --git a/src/libslic3r/Format/3mf.cpp b/src/libslic3r/Format/3mf.cpp index ee40adb56..516dc2919 100644 --- a/src/libslic3r/Format/3mf.cpp +++ b/src/libslic3r/Format/3mf.cpp @@ -228,15 +228,6 @@ bool is_valid_object_type(const std::string& type) return false; } -template std::string string_printf(const char *const fmt, Args &&...args) -{ - int bufflen = snprintf(nullptr, 0, fmt, std::forward(args)...); - std::vector buffer(size_t(bufflen), '\0'); - - snprintf(buffer.data(), buffer.size(), fmt, std::forward(args)...); - return std::string(buffer.begin(), buffer.end()); -} - namespace Slic3r { //! macro used to mark string used at localization,