From 3fd092837797c1a6e3de86e5f07327184a8d46da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Mon, 12 Dec 2016 14:16:41 +0200 Subject: [PATCH] Remove unused removeListener method (#7958) * Remove unused removeListener method --- .../server/data/AbstractDataProvider.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/server/src/main/java/com/vaadin/server/data/AbstractDataProvider.java b/server/src/main/java/com/vaadin/server/data/AbstractDataProvider.java index c7aedfd10a..1ab21a3125 100644 --- a/server/src/main/java/com/vaadin/server/data/AbstractDataProvider.java +++ b/server/src/main/java/com/vaadin/server/data/AbstractDataProvider.java @@ -72,26 +72,6 @@ public abstract class AbstractDataProvider implements DataProvider { return eventRouter.addListener(eventType, listener, method); } - /** - * Removes all registered listeners matching the given parameters. Since - * this method receives the event type and the listener object as - * parameters, it will unregister all object's methods that are - * registered to listen to events of type eventType generated - * by this component. - * - * @param eventType - * the exact event type the object listens to. - * @param listener - * the target object that has registered to listen to events of - * type eventType with one or more methods. - */ - protected void removeListener(Class eventType, - DataProviderListener listener) { - if (eventRouter != null) { - eventRouter.removeListener(eventType, listener); - } - } - /** * Sends the event to all listeners. * -- 2.39.5