Skip to content

Commit 0374cca

Browse files
committed
Remove unused SignalProto::deactivate() method
Removes the deactivate(const CallbackFn &callback) method that was not used anywhere in the codebase. gcc 15.2 has stricter analysis for unused code paths and template instantiation, causing build failures with this orphaned method.
1 parent 79d6dfa commit 0374cca

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

include/cinder/Signals.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -375,21 +375,6 @@ class SignalProto<R ( Args... ), Collector> : private CollectorInvocation<Collec
375375
return link;
376376
}
377377

378-
bool deactivate( const CallbackFn &callback )
379-
{
380-
if( callback == mCallbackFn ) {
381-
mCallbackFn = nullptr; // deactivate static head
382-
return true;
383-
}
384-
385-
for( SignalLink *link = this->mNext ? this->mNext : this; link != this; link = link->mNext ) {
386-
if( callback == link->function ) {
387-
link->unlink(); // deactivate and unlink sibling
388-
return true;
389-
}
390-
}
391-
return false;
392-
}
393378

394379
bool removeSibling( SignalLinkBase *sibling ) override
395380
{

0 commit comments

Comments
 (0)