Ivan FB b277ebde75
ffi_events: simplify removeEventListener with keepItIf
Replace the manual index-scan + delete with sequtils.keepItIf and a
length-delta check. keepItIf does the find-and-remove in one pass, so
the inner loop and the sentinel idx variable go away; comparing the
seq length before/after is enough to know whether this event held the
listener. Same prune-empty-key behaviour, less bookkeeping.

Addresses PR #70 review comment r3343439866.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 21:54:43 +02:00
..
2026-05-20 14:14:42 -03:00
2026-05-25 15:51:56 +02:00
2026-05-16 01:08:42 +02:00
2026-05-08 14:14:16 -03:00