Remove CStr functions related to std::u16string

It wasn't used. The conversion to `std::u16string` wasn't even defined.
This commit is contained in:
phosit
2026-08-24 13:34:37 +02:00
parent 73d043fde5
commit 89c7aa47ce
-10
View File
@@ -77,13 +77,6 @@ public:
**/
static CStr Repeat(const CStr& str, size_t reps);
/**
* Construction from u16strings.
*
* @param u16string String u16string to be used for initialization.
**/
explicit CStr(const std::u16string& str) : StrBase(str.begin(), str.end()) {}
// Conversion to/from UTF-8, encoded in a CStr8.
// Invalid bytes/characters (e.g. broken UTF-8, and Unicode characters
// above U+FFFF) are silently replaced with U+FFFD.
@@ -233,9 +226,6 @@ public:
**/
CStr Trim(PS_TRIM_MODE mode) const;
// Conversion to u16string
std::u16string utf16() const { return std::u16string(begin(), end()); }
// Calculates a hash of the string's contents
size_t GetHashCode() const;