From: Manolo Carrasco Date: Mon, 14 Feb 2011 16:30:07 +0000 (+0000) Subject: Do not copy deprecated methods in lazy interfaces to avoid compiler warnings X-Git-Tag: release-1.3.2~545 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8948f8d8b3070e46549f5540ef92a172ba5d1bfb;p=gwtquery.git Do not copy deprecated methods in lazy interfaces to avoid compiler warnings --- diff --git a/extractInterface.pl b/extractInterface.pl index e4dad07c..c0510ee8 100644 --- a/extractInterface.pl +++ b/extractInterface.pl @@ -23,7 +23,7 @@ $o =~ s/$iclass/$oclass/; my $c = 0; open(F, $i) || die $!; -my ($in, $com, $ingq, $inclass, $inh, $head, $body, $inmeth, $meth) = (0, "", 0, 0, 1, "", "", 0, ""); +my ($in, $com, $ingq, $inclass, $inh, $head, $body, $inmeth, $meth, $dep) = (0, "", 0, 0, 1, "", "", 0, "", 0); my ($a, $b) = (0,0); while() { s/\r+//g; @@ -35,9 +35,12 @@ while() { if ($ingq && !$inclass) { $in = 1 if (/^\/\**\s*$/); $com = "" if (/^\/\**\s*$/); + $dep = 1 if (/^\s*\@Deprecated/); next if /static/; next if /$iclass\s*\(/; $inmeth = 1 if (!$inmeth && !$in && /(public .*?\(.*)\s*$/); + $dep = $inmeth = 0 if ($dep && $inmeth); + $dep = $in = 0 if ($dep && $in); $meth .= $_ if ($inmeth); if ($inmeth && /\{/) { $meth =~ s/final\s+//g; diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java index f3cbbca5..6a8599ba 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java @@ -251,16 +251,6 @@ public interface LazyGQuery extends LazyBase{ */ LazyGQuery click(Function...f); - /** - * @deprecated use innerHeight() - */ - int clientHeight(); - - /** - * @deprecated use innerWidth() - */ - int clientWidth(); - /** * Clone matched DOM Elements and select the clones. This is useful for moving * copies of the elements to another location in the DOM.