diff --git a/js/xpconnect/src/XPCConvert.cpp b/js/xpconnect/src/XPCConvert.cpp index 7bfc96cd29e0..3df25fb3cf6c 100644 --- a/js/xpconnect/src/XPCConvert.cpp +++ b/js/xpconnect/src/XPCConvert.cpp @@ -1762,14 +1762,6 @@ XPCConvert::JSStringWithSize2Native(void* d, HandleValue s, return false; } - if (0 != count) { - len = (count + 1) * sizeof(char16_t); - if (!(*((void**)d) = moz_xmalloc(len))) - return false; - return true; - } - - // else ... *((const char16_t**)d) = nullptr; return true; }