mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Refactor: RuntimeScheduler: Stop defaulting ctor args redundantly (#43954)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43954 Now, all the defaulting is in RuntimeScheduler.h. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D55547900 fbshipit-source-id: 53678c6a0c83a47e3b0c1a51e388daadfa6bff5e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3094273e8b
commit
3382b15f08
+1
-2
@@ -22,8 +22,7 @@ class RuntimeScheduler_Legacy final : public RuntimeSchedulerBase {
|
||||
public:
|
||||
explicit RuntimeScheduler_Legacy(
|
||||
RuntimeExecutor runtimeExecutor,
|
||||
std::function<RuntimeSchedulerTimePoint()> now =
|
||||
RuntimeSchedulerClock::now);
|
||||
std::function<RuntimeSchedulerTimePoint()> now);
|
||||
|
||||
/*
|
||||
* Not copyable.
|
||||
|
||||
+1
-2
@@ -23,8 +23,7 @@ class RuntimeScheduler_Modern final : public RuntimeSchedulerBase {
|
||||
public:
|
||||
explicit RuntimeScheduler_Modern(
|
||||
RuntimeExecutor runtimeExecutor,
|
||||
std::function<RuntimeSchedulerTimePoint()> now =
|
||||
RuntimeSchedulerClock::now);
|
||||
std::function<RuntimeSchedulerTimePoint()> now);
|
||||
|
||||
/*
|
||||
* Not copyable.
|
||||
|
||||
Reference in New Issue
Block a user