File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
adapter/src/main/kotlin/org/javacs/ktda/jdi/event Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -132,21 +132,6 @@ class VMEventBus(private val vm: VirtualMachine): DebuggeeEventBus {
132132 }
133133 }
134134 }
135-
136- /* * Subscribes to a JDI event type and lets the listener decide whether to stop subscribing. */
137- fun <E : JDIEvent > listen (eventClass : KClass <E >, listener : (VMEvent <E >) -> Boolean ) {
138- var box = Box < ((VMEvent <E >) -> Unit )? > (null )
139- box.value = {
140- val continueSubscribing = listener(it)
141-
142- if (! continueSubscribing) {
143- // See method above for rationale
144- @Suppress(" UNCHECKED_CAST" )
145- eventListeners[eventClass]?.remove(box.value as (VMEvent <JDIEvent >) -> Unit )
146- }
147- }
148- subscribe(eventClass, box.value!! )
149- }
150135
151136 private fun dispatchEvent (event : JDIEvent , eventSet : JDIEventSet ): Boolean {
152137 val VMEvent = VMEvent (event, eventSet)
You can’t perform that action at this time.
0 commit comments