From 402679a7adbde5c87e75639a5d52c36f200daddf Mon Sep 17 00:00:00 2001 From: Jonatan Klemets Date: Mon, 16 Jan 2023 20:17:30 +0000 Subject: [PATCH] Bug 1810366 - Remove unused requestedModule variable in ModuleLoaderBase::ResolveRequestedModules r=jonco Differential Revision: https://phabricator.services.mozilla.com/D166879 --- js/loader/ModuleLoaderBase.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/js/loader/ModuleLoaderBase.cpp b/js/loader/ModuleLoaderBase.cpp index 784ae263224e..8c0163fcf740 100644 --- a/js/loader/ModuleLoaderBase.cpp +++ b/js/loader/ModuleLoaderBase.cpp @@ -755,7 +755,6 @@ nsresult ModuleLoaderBase::ResolveRequestedModules( JS::Rooted moduleRecord(cx, ms->ModuleRecord()); uint32_t length = JS::GetRequestedModulesCount(cx, moduleRecord); - JS::Rooted requestedModule(cx); for (uint32_t i = 0; i < length; i++) { JS::Rooted str( cx, JS::GetRequestedModuleSpecifier(cx, moduleRecord, i));