From 7fd9e778371fe2e2c839eba0827aefb4153a68b1 Mon Sep 17 00:00:00 2001 From: leeight Date: Mon, 26 Sep 2016 01:38:42 -0700 Subject: [PATCH] Remove duplicate call delegate->moduleNames() Summary: Closes https://github.com/facebook/react-native/pull/9962 Differential Revision: D3923050 fbshipit-source-id: 59e05e673835beb7409512195170c9a1e20a9ea1 --- ReactCommon/cxxreact/JSCExecutor.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/ReactCommon/cxxreact/JSCExecutor.cpp b/ReactCommon/cxxreact/JSCExecutor.cpp index 6cb9f5bf2..9b83686ed 100644 --- a/ReactCommon/cxxreact/JSCExecutor.cpp +++ b/ReactCommon/cxxreact/JSCExecutor.cpp @@ -109,7 +109,6 @@ JSCExecutor::JSCExecutor(std::shared_ptr delegate, { SystraceSection s("collectNativeModuleNames"); - std::vector names = delegate->moduleNames(); for (auto& name : delegate->moduleNames()) { nativeModuleConfig.push_back(folly::dynamic::array(std::move(name))); }