remove unused functions

This commit is contained in:
Martin Brodbeck 2018-08-15 13:12:09 +02:00
parent 5957f1ba4d
commit 5e81e2d8b4
2 changed files with 0 additions and 14 deletions

View file

@ -1,6 +1,5 @@
#include "utils.h"
#include <codecvt>
#include <iomanip>
#include <numeric>
@ -45,12 +44,3 @@ std::optional<PrinterDevice> convertToPosPrinterDevice(const std::string& device
return printerDevice;
}
#ifdef _WIN32
std::string convertFromUtf16ToUtf8(std::u16string& utf16String)
{
std::string u8_conv =
std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>{}.to_bytes(utf16String);
return u8_conv;
}
#endif

View file

@ -11,8 +11,4 @@ std::string formatCentAsEuroString(const int cent, int width = 10);
std::optional<PrinterDevice> convertToPosPrinterDevice(const std::string& vendor,
const std::string& endpoint);
#ifdef __WIN32
std::string convertFromUtf16ToUtf8(std::u16string& utf16String);
#endif
#endif