summaryrefslogtreecommitdiff
path: root/src/common/Utilities/StringFormat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Utilities/StringFormat.h')
-rw-r--r--src/common/Utilities/StringFormat.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/common/Utilities/StringFormat.h b/src/common/Utilities/StringFormat.h
index fa5aeb4616..d4d93f2324 100644
--- a/src/common/Utilities/StringFormat.h
+++ b/src/common/Utilities/StringFormat.h
@@ -26,27 +26,12 @@
namespace Acore
{
- /// Default AC string format function.
- template<typename Format, typename... Args>
- inline std::string StringFormat(Format&& fmt, Args&& ... args)
- {
- try
- {
- return fmt::sprintf(std::forward<Format>(fmt), std::forward<Args>(args)...);
- }
- catch (const fmt::format_error& formatError)
- {
- std::string error = "An error occurred formatting string \"" + std::string(fmt) + "\" : " + std::string(formatError.what());
- return error;
- }
- }
-
template<typename... Args>
using FormatString = fmt::format_string<Args...>;
- // Default string format function.
+ /// Default AC string format function.
template<typename... Args>
- inline std::string StringFormatFmt(FormatString<Args...> fmt, Args&&... args)
+ inline std::string StringFormat(FormatString<Args...> fmt, Args&&... args)
{
try
{