forked from External/mage
Performance: fixed memory leaks on each card viewer or draft open (10 Mb per call, related to #11285, fixes #9548)
This commit is contained in:
parent
ce311fd691
commit
36ccfb0a2a
13 changed files with 44 additions and 10 deletions
|
|
@ -1,17 +1,17 @@
|
|||
|
||||
|
||||
package mage.game.events;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* TODO: there are duplicated interfaces of EventSource, must combine in single
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
* @param <E>
|
||||
*/
|
||||
public interface EventSource<E extends ExternalEvent> extends Serializable {
|
||||
|
||||
void addListener(Listener<E> listener);
|
||||
|
||||
void removeListener(Listener<E> listener);
|
||||
|
||||
void removeAllListener();
|
||||
void removeAllListeners();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue