Skip to content

Commit

Permalink
Comment out the unused code in url_utf.h
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Sep 29, 2024
1 parent bd93d2d commit ed47482
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/upa/url_utf.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class url_utf {
template <class Output, void appendByte(unsigned char, Output&)>
static void append_utf8(uint32_t code_point, Output& output);

#if 0 // UNUSED
/*** UNUSED ***
template <class Output>
static void append_utf16(uint32_t code_point, Output& output);
#endif
***/

// Convert to utf-8 string
static std::string to_utf8_string(const char16_t* first, const char16_t* last);
Expand Down Expand Up @@ -236,7 +236,7 @@ inline void url_utf::append_utf8(uint32_t code_point, Output& output) {
}
}

#if 0 // UNUSED
/*** UNUSED ***
// Modified version of the U16_APPEND_UNSAFE macro in utf16.h from ICU
//
// It converts code_point to UTF-16 code units sequence and appends to output.
Expand All @@ -251,7 +251,7 @@ inline void url_utf::append_utf16(uint32_t code_point, Output& output) {
output.push_back(static_cast<char16_t>((code_point & 0x3ff) | 0xdc00));
}
}
#endif
***/


} // namespace upa
Expand Down

0 comments on commit ed47482

Please sign in to comment.