removed redundant loop
@@ -126,15 +126,8 @@ public class RTServiceImpl implements RTService
private <T extends Result> void removeEventListeners( T callback, CopyOnWriteArrayList<T> listeners )
{
- for( T listener : listeners )
- {
- if( listener == callback )
- {
- //we can do it because it is CopyOnWriteArrayList so we iterate through the copy
listeners.remove( callback );
}
- }
- }
@SuppressWarnings( "unchecked" )
private <T, E extends Result> void handle( T result, CopyOnWriteArrayList<E> listeners )
