Eliminate the CHECK() macro

This thing was pretty useless.
This commit is contained in:
ridiculousfish
2019-05-27 17:24:19 -07:00
parent 8c76bb49a4
commit b405b979ec
10 changed files with 16 additions and 34 deletions

View File

@@ -431,9 +431,7 @@ std::string wcs2string(const wcstring &input) {
/// This function decodes illegal character sequences in a reversible way using the private use
/// area.
static char *wcs2str_internal(const wchar_t *in, char *out) {
CHECK(in, 0);
CHECK(out, 0);
assert(in && out && "in and out must not be null");
size_t in_pos = 0;
size_t out_pos = 0;
mbstate_t state = {};