Skip to content

Commit b4dbd86

Browse files
committed
Refactored and removed unused code
1 parent 2b78c6a commit b4dbd86

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/iusenko/eventbus/EventBus.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public static void unsubscrube(Object handler) {
4343
}
4444
}
4545

46+
public static void unsubscribeAll() {
47+
eventHandlerHolders.clear();
48+
}
49+
4650
public static void publish(Object event) {
4751
if (event == null) {
4852
throw new IllegalArgumentException();

0 commit comments

Comments
 (0)