From 0b5287f8b7d6ab06ac112b7ec877f043e2eedf3e Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 15 May 2024 12:51:47 -0700 Subject: [PATCH] Remove unused function --- .github/workflows/linux.yml | 4 ---- test/xchar-test.cc | 6 ------ 2 files changed, 10 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0f30ba63..d662c91b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -30,10 +30,6 @@ jobs: - cxx: g++-10 build_type: Debug std: 17 - - cxx: g++-11 - build_type: Debug - std: 20 - install: sudo apt install g++-11 - cxx: clang++-8 build_type: Debug std: 17 diff --git a/test/xchar-test.cc b/test/xchar-test.cc index cbc961d3..312e632b 100644 --- a/test/xchar-test.cc +++ b/test/xchar-test.cc @@ -183,12 +183,6 @@ TEST(xchar_test, format_custom_char) { } #endif -// Convert a char8_t string to std::string. Otherwise GTest will insist on -// inserting `char8_t` NTBS into a `char` stream which is disabled by P1423. -template std::string from_u8str(const S& str) { - return std::string(str.begin(), str.end()); -} - TEST(xchar_test, format_to) { auto buf = std::vector(); fmt::format_to(std::back_inserter(buf), L"{}{}", 42, L'\0');