mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove unused arguments
Summary: changelog: [internal] Linter was not happy about this. Reviewed By: ShikaSD Differential Revision: D33235690 fbshipit-source-id: 389a49afe2c828f60bfbfb1c6e92d2c74f676600
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eb35e4a4f6
commit
b3fe2d40e8
@@ -64,8 +64,7 @@ static void testShadowNodeTreeLifeCycleLayoutAnimations(
|
||||
PropsParserContext parserContext{-1, *contextContainer};
|
||||
|
||||
// Create a RuntimeExecutor
|
||||
RuntimeExecutor runtimeExecutor =
|
||||
[](std::function<void(jsi::Runtime & runtime)> fn) {};
|
||||
RuntimeExecutor runtimeExecutor = [](std::function<void(jsi::Runtime &)>) {};
|
||||
|
||||
// Create component descriptor registry for animation driver
|
||||
auto providerRegistry =
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user