From e7b915e7516b43adb90871e1657ca91c6103ad3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20Carrasco=20Mo=C3=B1ino?= Date: Mon, 4 Nov 2013 21:43:13 +0100 Subject: [PATCH] Remove useless method from Effects plugin --- .../gwt/query/client/plugins/Effects.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java index 44deecb5..d8b07659 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java @@ -308,7 +308,6 @@ public class Effects extends QueuePlugin { public Effects clip(final ClipAnimation.Action a, final ClipAnimation.Corner c, final ClipAnimation.Direction d, final int duration, final Function... f) { - for (Element e : elements()) { queueAnimation(e, new ClipAnimation(e, a, c, d, f), duration); } @@ -575,27 +574,6 @@ public class Effects extends QueuePlugin { return animate("height: 'hide'", millisecs, f); } - - /** - * Toggle displaying each of the set of matched elements. - * - * @param showOrHide A Boolean indicating whether to show or hide the - * elements. - */ - // maybe move this function in GQuery class directly ? - public Effects toggle(boolean showOrHide) { - for (Element element : elements()) { - GQuery $element = $(element); - if (!showOrHide) { - $element.hide(); - } else { - $element.show(); - } - - } - return this; - } - /** * Toggle displaying each of the set of matched elements by animating the * width, height, and opacity of the matched elements simultaneously. When -- 2.39.5