From b3fe2d40e89e89daaaf42162d9bf0ee7eccd5a41 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Mon, 20 Dec 2021 11:21:14 -0800 Subject: [PATCH] Remove unused arguments Summary: changelog: [internal] Linter was not happy about this. Reviewed By: ShikaSD Differential Revision: D33235690 fbshipit-source-id: 389a49afe2c828f60bfbfb1c6e92d2c74f676600 --- .../renderer/animations/tests/LayoutAnimationTest.cpp | 3 +-- .../templateprocessor/tests/UITemplateProcessorTest.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp b/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp index 33e72268f1f..7823542ad3c 100644 --- a/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +++ b/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp @@ -64,8 +64,7 @@ static void testShadowNodeTreeLifeCycleLayoutAnimations( PropsParserContext parserContext{-1, *contextContainer}; // Create a RuntimeExecutor - RuntimeExecutor runtimeExecutor = - [](std::function fn) {}; + RuntimeExecutor runtimeExecutor = [](std::function) {}; // Create component descriptor registry for animation driver auto providerRegistry = diff --git a/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp b/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp index add08294321..8f2b2a068dc 100644 --- a/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp +++ b/ReactCommon/react/renderer/templateprocessor/tests/UITemplateProcessorTest.cpp @@ -48,8 +48,7 @@ NativeModuleRegistry buildNativeModuleRegistry(); NativeModuleRegistry buildNativeModuleRegistry() { NativeModuleRegistry nMR; nMR.registerModule( - "MobileConfig", - [&](const std::string &methodName, const folly::dynamic &args) { + "MobileConfig", [&](const std::string &, const folly::dynamic &) { return mockSimpleTestValue_; }); return nMR; @@ -62,15 +61,15 @@ class MockReactNativeConfig : public ReactNativeConfig { return mockSimpleTestValue_; } - std::string getString(const std::string ¶m) const override { + std::string getString(const std::string &) const override { return ""; } - int64_t getInt64(const std::string ¶m) const override { + int64_t getInt64(const std::string &) const override { return 0; } - double getDouble(const std::string ¶m) const override { + double getDouble(const std::string &) const override { return 0.0; } };