Remove duplicate call delegate->moduleNames()

Summary: Closes https://github.com/facebook/react-native/pull/9962

Differential Revision: D3923050

fbshipit-source-id: 59e05e673835beb7409512195170c9a1e20a9ea1
This commit is contained in:
leeight 2016-09-26 01:38:42 -07:00 committed by Facebook Github Bot 7
parent 9584480261
commit 7fd9e77837

View File

@ -109,7 +109,6 @@ JSCExecutor::JSCExecutor(std::shared_ptr<ExecutorDelegate> delegate,
{
SystraceSection s("collectNativeModuleNames");
std::vector<std::string> names = delegate->moduleNames();
for (auto& name : delegate->moduleNames()) {
nativeModuleConfig.push_back(folly::dynamic::array(std::move(name)));
}