diff --git a/src/common.cpp b/src/common.cpp index baee97a62..a1cc7c63c 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -303,16 +303,6 @@ static wcstring str2wcs_internal(const char *in, const size_t in_len) { wcstring result; result.reserve(in_len); - // In the unlikely event that MB_CUR_MAX is 1, then we are just going to append. - if (MB_CUR_MAX == 1) { - size_t in_pos = 0; - while (in_pos < in_len) { - result.push_back(static_cast(in[in_pos])); - in_pos++; - } - return result; - } - size_t in_pos = 0; mbstate_t state = {}; while (in_pos < in_len) {