Bug 785551 - Remove an orphaned variable: r=Waldo
authorTerrence Cole <terrence@mozilla.com>
Wed, 19 Sep 2012 17:00:03 -0700
changeset 107671 7d54dc3c254e888c58ed9a0749c5fd722639de12
parent 107670 447705d3945665cbf6b0bee4491e404b5ac287b9
child 107672 4974c79f0439a51abb026dc52944101e0d41ec2f
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersWaldo
bugs785551
milestone18.0a1
Bug 785551 - Remove an orphaned variable: r=Waldo
js/src/vm/String.cpp
--- a/js/src/vm/String.cpp
+++ b/js/src/vm/String.cpp
@@ -364,17 +364,16 @@ JSDependentString::undepend(JSContext *c
     return &this->asFlat();
 }
 
 JSStableString *
 JSInlineString::uninline(JSContext *maybecx)
 {
     JS_ASSERT(isInline());
     size_t n = length();
-    size_t nbytes = (n + 1) * sizeof(jschar);
     jschar *news = maybecx ? maybecx->pod_malloc<jschar>(n + 1) : js_pod_malloc<jschar>(n + 1);
     if (!news)
         return NULL;
     js_strncpy(news, d.inlineStorage, n);
     news[n] = 0;
     d.u1.chars = news;
     JS_ASSERT(!isInline());
     return &asStable();