io/input: remove unused field

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2024-06-07 10:32:44 +02:00
parent e6da07a85a
commit 56177c55cf
+3 -5
View File
@@ -35,10 +35,9 @@ type Router struct {
queue keyQueue queue keyQueue
// The following fields have the same purpose as the fields in // The following fields have the same purpose as the fields in
// type handler, but for key.Events. // type handler, but for key.Events.
filter keyFilter filter keyFilter
nextFilter keyFilter nextFilter keyFilter
processedFilter keyFilter scratchFilter keyFilter
scratchFilter keyFilter
} }
cqueue clipboardQueue cqueue clipboardQueue
// states is the list of pending state changes resulting from // states is the list of pending state changes resulting from
@@ -304,7 +303,6 @@ func (q *Router) Event(filters ...event.Filter) (event.Event, bool) {
h := q.stateFor(tf.tag) h := q.stateFor(tf.tag)
h.processedFilter.Merge(tf.filter) h.processedFilter.Merge(tf.filter)
} }
q.key.processedFilter = append(q.key.processedFilter, q.key.scratchFilter...)
return nil, false return nil, false
} }