Bug 1277429 - remove unused variable in ResolveRequestedModules; r=baku
authorNathan Froyd <froydnj@gmail.com>
Fri, 03 Jun 2016 18:31:58 -0400
changeset 375200 7f84cbdcc9f27469e260b53eb4527e80f042d1f6
parent 375199 55df8b698e664f3082b394a043d0c9b57fc0dc9f
child 375201 985578e6b5817adb81bc6ee83e07f72423d82606
push id20189
push userjlund@mozilla.com
push dateFri, 03 Jun 2016 17:40:55 +0000
reviewersbaku
bugs1277429
milestone49.0a1
Bug 1277429 - remove unused variable in ResolveRequestedModules; r=baku
dom/base/nsScriptLoader.cpp
--- a/dom/base/nsScriptLoader.cpp
+++ b/dom/base/nsScriptLoader.cpp
@@ -861,18 +861,16 @@ ResolveRequestedModules(nsModuleLoadRequ
   JS::Rooted<JSObject*> moduleRecord(cx, ms->ModuleRecord());
   JS::Rooted<JSObject*> specifiers(cx, JS::GetRequestedModules(cx, moduleRecord));
 
   uint32_t length;
   if (!JS_GetArrayLength(cx, specifiers, &length)) {
     return NS_ERROR_FAILURE;
   }
 
-  nsCOMArray<nsIURI> uris(length);
-  MOZ_ASSERT(uris.Length() == 0);
   JS::Rooted<JS::Value> arrayValue(cx, JS::ObjectValue(*specifiers));
   JS::ForOfIterator iter(cx);
   if (!iter.init(arrayValue)) {
     return NS_ERROR_FAILURE;
   }
 
   JS::Rooted<JS::Value> val(cx);
   while (true) {