From a4376d5dd4d5c7509cb7a1bc36378a02786b983a Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 27 Jul 2017 09:43:06 +0200 Subject: [PATCH] Bug 1384848 - Remove dead code in XPCConvert.cpp r=mrbkap MozReview-Commit-ID: D6kCUtqfIwo --HG-- extra : rebase_source : 539ce1a925fa42b74007189708287ee74324261a --- js/xpconnect/src/XPCConvert.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/xpconnect/src/XPCConvert.cpp b/js/xpconnect/src/XPCConvert.cpp index 7bfc96cd29e0..1e52e119546b 100644 --- a/js/xpconnect/src/XPCConvert.cpp +++ b/js/xpconnect/src/XPCConvert.cpp @@ -1708,14 +1708,6 @@ XPCConvert::JSStringWithSize2Native(void* d, HandleValue s, *pErr = NS_ERROR_XPC_NOT_ENOUGH_CHARS_IN_STRING; return false; } - if (0 != count) { - len = (count + 1) * sizeof(char); - if (!(*((void**)d) = moz_xmalloc(len))) - return false; - return true; - } - // else ... - *((char**)d) = nullptr; return true; }