From 23718371f820fb3babca2c57072a62137aa2c01d Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Fri, 22 Sep 2017 11:44:16 +0200 Subject: Remove unused methods. (#10058) --- .../main/java/com/vaadin/v7/data/util/AbstractProperty.java | 4 ---- .../com/vaadin/v7/data/util/sqlcontainer/ColumnProperty.java | 4 ---- .../src/main/java/com/vaadin/v7/ui/AbstractField.java | 4 ---- .../src/main/java/com/vaadin/v7/ui/Grid.java | 12 ------------ .../test/java/com/vaadin/tests/server/SerializationTest.java | 5 ----- 5 files changed, 29 deletions(-) (limited to 'compatibility-server/src') diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/AbstractProperty.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/AbstractProperty.java index 98af2cdf17..6a3c26a578 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/AbstractProperty.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/AbstractProperty.java @@ -272,8 +272,4 @@ public abstract class AbstractProperty implements Property, return Collections.EMPTY_LIST; } - - private static Logger getLogger() { - return Logger.getLogger(AbstractProperty.class.getName()); - } } diff --git a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/ColumnProperty.java b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/ColumnProperty.java index b1fc3738ed..6edf06edd3 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/ColumnProperty.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/data/util/sqlcontainer/ColumnProperty.java @@ -257,10 +257,6 @@ public final class ColumnProperty implements Property { // LegacyPropertyHelper has been removed in Vaadin 8 - private static Logger getLogger() { - return Logger.getLogger(ColumnProperty.class.getName()); - } - public void setOwner(RowItem owner) { if (owner == null) { throw new IllegalArgumentException("Owner can not be set to null."); diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractField.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractField.java index 99bc5a1f77..4eb44994aa 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractField.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractField.java @@ -1774,8 +1774,4 @@ public abstract class AbstractField extends AbstractLegacyComponent super.isReadOnly(), def.isReadOnly(), Boolean.class, designContext); } - - private static final Logger getLogger() { - return Logger.getLogger(AbstractField.class.getName()); - } } diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java index fdd93f56c4..c4e7c42107 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java @@ -1080,18 +1080,6 @@ public class Grid extends AbstractComponent new ConnectorErrorEvent(Grid.this, event.getCause())); } } - - private Object getFirstPropertyId(FieldGroup fieldGroup, - Set> keySet) { - for (Column c : getColumns()) { - Object propertyId = c.getPropertyId(); - Field f = fieldGroup.getField(propertyId); - if (keySet.contains(f)) { - return propertyId; - } - } - return null; - } } /** diff --git a/compatibility-server/src/test/java/com/vaadin/tests/server/SerializationTest.java b/compatibility-server/src/test/java/com/vaadin/tests/server/SerializationTest.java index eb852974fc..b59d7a4aa7 100644 --- a/compatibility-server/src/test/java/com/vaadin/tests/server/SerializationTest.java +++ b/compatibility-server/src/test/java/com/vaadin/tests/server/SerializationTest.java @@ -54,9 +54,4 @@ public class SerializationTest { return s2; } - - private static String toString(Object o) { - return String.valueOf(o); - } - } -- cgit v1.2.3