Skip to content

Commit

Permalink
Remove unused print_hex helper function in unicode test
Browse files Browse the repository at this point in the history
  • Loading branch information
bold84 committed Jul 24, 2024
1 parent 068a9e3 commit 19e3927
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/empty/test-empty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,6 @@ TEST_CASE("Strings with Byte Order Marks (BOMs)", "[unicode]")
{
using namespace soci::details;

// Helper function to print hexadecimal representation of a string
auto print_hex = [](const std::string& s, const std::string& label) {
std::cout << label << ": ";
for (unsigned char c : s) {
std::cout << std::hex << std::setw(2) << std::setfill('0') << static_cast<int>(c) << " ";
}
std::cout << std::endl;
};

// UTF-8 BOM
const std::string utf8_bom = "\xEF\xBB\xBF";
// UTF-16 BOM (Little Endian)
Expand Down

0 comments on commit 19e3927

Please sign in to comment.