From 5e81e2d8b4b4381cf787ee3d54ce9088c76d4c5a Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Wed, 15 Aug 2018 13:12:09 +0200 Subject: [PATCH] remove unused functions --- src/core/utils.cpp | 10 ---------- src/core/utils.h | 4 ---- 2 files changed, 14 deletions(-) diff --git a/src/core/utils.cpp b/src/core/utils.cpp index 824533e..b983423 100644 --- a/src/core/utils.cpp +++ b/src/core/utils.cpp @@ -1,6 +1,5 @@ #include "utils.h" -#include #include #include @@ -45,12 +44,3 @@ std::optional convertToPosPrinterDevice(const std::string& device return printerDevice; } - -#ifdef _WIN32 -std::string convertFromUtf16ToUtf8(std::u16string& utf16String) -{ - std::string u8_conv = - std::wstring_convert, char16_t>{}.to_bytes(utf16String); - return u8_conv; -} -#endif diff --git a/src/core/utils.h b/src/core/utils.h index 5e8f108..ff15359 100644 --- a/src/core/utils.h +++ b/src/core/utils.h @@ -11,8 +11,4 @@ std::string formatCentAsEuroString(const int cent, int width = 10); std::optional convertToPosPrinterDevice(const std::string& vendor, const std::string& endpoint); -#ifdef __WIN32 -std::string convertFromUtf16ToUtf8(std::u16string& utf16String); -#endif - #endif