From 89c7aa47ce6e3b0e8419d94884b1e37d47b25fbe Mon Sep 17 00:00:00 2001 From: phosit Date: Mon, 24 Aug 2026 13:34:37 +0200 Subject: [PATCH] Remove CStr functions related to std::u16string It wasn't used. The conversion to `std::u16string` wasn't even defined. --- source/ps/CStr.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/source/ps/CStr.h b/source/ps/CStr.h index ab98f9cdcc..5291b8efac 100644 --- a/source/ps/CStr.h +++ b/source/ps/CStr.h @@ -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;