Skip to content

Commit 056b281

Browse files
pujaganidiemol
andauthored
[grid] Remove redundant listeners in Grid Model. (#9310)
* [grid] Remove redundant listeners in Grid Model. * [grid] Remove unused imports Co-authored-by: Diego Molina <[email protected]>
1 parent 5004ca8 commit 056b281

File tree

1 file changed

+0
-7
lines changed
  • java/server/src/org/openqa/selenium/grid/distributor/local

1 file changed

+0
-7
lines changed

java/server/src/org/openqa/selenium/grid/distributor/local/GridModel.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@
2020
import com.google.common.collect.ImmutableSet;
2121
import org.openqa.selenium.events.EventBus;
2222
import org.openqa.selenium.grid.data.Availability;
23-
import org.openqa.selenium.grid.data.NodeDrainComplete;
2423
import org.openqa.selenium.grid.data.NodeDrainStarted;
2524
import org.openqa.selenium.grid.data.NodeId;
26-
import org.openqa.selenium.grid.data.NodeRemovedEvent;
2725
import org.openqa.selenium.grid.data.NodeStatus;
28-
import org.openqa.selenium.grid.data.NodeStatusEvent;
2926
import org.openqa.selenium.grid.data.Session;
3027
import org.openqa.selenium.grid.data.SessionClosedEvent;
3128
import org.openqa.selenium.grid.data.Slot;
@@ -63,10 +60,6 @@ public GridModel(EventBus events) {
6360
this.events = Require.nonNull("Event bus", events);
6461

6562
this.events.addListener(NodeDrainStarted.listener(nodeId -> setAvailability(nodeId, DRAINING)));
66-
this.events.addListener(NodeDrainComplete.listener(this::remove));
67-
this.events.addListener(NodeRemovedEvent.listener(this::remove));
68-
this.events.addListener(NodeStatusEvent.listener(this::refresh));
69-
7063
this.events.addListener(SessionClosedEvent.listener(this::release));
7164
}
7265

0 commit comments

Comments
 (0)