Skip to content

Commit 0ac3b81

Browse files
committed
Remove redundant explicit copying.
1 parent 31d4507 commit 0ac3b81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cores/esp8266/Schedule.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ MultiDelegate<mRecFuncT> recFuncs;
4848
IRAM_ATTR // (not only) called from ISR
4949
bool schedule_function(const Delegate<void(), void*>& fn)
5050
{
51-
mSchedFuncT func(fn);
52-
return schedFuncs.add(std::move(func));
51+
return schedFuncs.add(fn);
5352
}
5453

5554
IRAM_ATTR // (not only) called from ISR

0 commit comments

Comments
 (0)