mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix unused parameter warnings in TimerManager (#56516)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56516 Fixed clang-diagnostic-unused-parameter warnings in TimerManager.cpp by commenting out the unused 'runtime' parameter names in two functions: - deleteTimer() at line 135 - deleteRecurringTimer() at line 152-153 Both functions accept a jsi::Runtime& parameter for API compatibility but don't use it internally. The fix maintains the function signatures while suppressing the warnings by commenting out the parameter names. Changelog: [Internal] Reviewed By: zeyap Differential Revision: D101108602 fbshipit-source-id: 95554385c6d36e724fdc1de4a3b20e1e1014a39c
This commit is contained in:
1 parent
acb85ce0d1
commit
aa5a78c18e
1 file changed
+4
-2
@@ -132,7 +132,9 @@ TimerHandle TimerManager::createRecurringTimer(
|
||||
return timerID;
|
||||
}
|
||||
|
||||
void TimerManager::deleteTimer(jsi::Runtime& runtime, TimerHandle timerHandle) {
|
||||
void TimerManager::deleteTimer(
|
||||
jsi::Runtime& /* runtime */,
|
||||
TimerHandle timerHandle) {
|
||||
if (timerHandle < 0) {
|
||||
/**
|
||||
* Do nothing for negative values to match web spec.
|
||||
@@ -150,7 +152,7 @@ void TimerManager::deleteTimer(jsi::Runtime& runtime, TimerHandle timerHandle) {
|
||||
}
|
||||
|
||||
void TimerManager::deleteRecurringTimer(
|
||||
jsi::Runtime& runtime,
|
||||
jsi::Runtime& /* runtime */,
|
||||
TimerHandle timerHandle) {
|
||||
if (timerHandle < 0) {
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user