aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-20 12:16:21 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-20 13:16:21 +0300
commit8657a5ff49f22d87005e93771415129dfc657d88 (patch)
tree67e55d72684c6dbf7b247a00bff4edd4fcde7a01 /server/src/main/java/com
parentf3ae6c2c2b1245d20d94cb4eeee4efee8c2b06c6 (diff)
downloadvaadin-framework-8657a5ff49f22d87005e93771415129dfc657d88.tar.gz
vaadin-framework-8657a5ff49f22d87005e93771415129dfc657d88.zip
Remove unused methods (#10020)
Diffstat (limited to 'server/src/main/java/com')
-rw-r--r--server/src/main/java/com/vaadin/data/TreeData.java20
-rw-r--r--server/src/main/java/com/vaadin/event/ConnectorActionManager.java4
-rw-r--r--server/src/main/java/com/vaadin/event/EventRouter.java4
-rw-r--r--server/src/main/java/com/vaadin/server/AbstractClientConnector.java4
-rw-r--r--server/src/main/java/com/vaadin/server/VaadinPortletService.java5
-rw-r--r--server/src/main/java/com/vaadin/ui/AbstractComponent.java3
-rw-r--r--server/src/main/java/com/vaadin/ui/DragAndDropWrapper.java4
-rw-r--r--server/src/main/java/com/vaadin/ui/Grid.java7
-rw-r--r--server/src/main/java/com/vaadin/ui/dnd/FileDropTarget.java4
9 files changed, 3 insertions, 52 deletions
diff --git a/server/src/main/java/com/vaadin/data/TreeData.java b/server/src/main/java/com/vaadin/data/TreeData.java
index 60f9d6fb29..ff5bc622c2 100644
--- a/server/src/main/java/com/vaadin/data/TreeData.java
+++ b/server/src/main/java/com/vaadin/data/TreeData.java
@@ -43,24 +43,14 @@ import com.vaadin.data.provider.TreeDataProvider;
public class TreeData<T> implements Serializable {
private static class HierarchyWrapper<T> implements Serializable {
- private T item;
private T parent;
private List<T> children;
- public HierarchyWrapper(T item, T parent) {
- this.item = item;
+ public HierarchyWrapper(T parent) {
this.parent = parent;
children = new ArrayList<>();
}
- public T getItem() {
- return item;
- }
-
- public void setItem(T item) {
- this.item = item;
- }
-
public T getParent() {
return parent;
}
@@ -73,10 +63,6 @@ public class TreeData<T> implements Serializable {
return children;
}
- public void setChildren(List<T> children) {
- this.children = children;
- }
-
public void addChild(T child) {
children.add(child);
}
@@ -94,7 +80,7 @@ public class TreeData<T> implements Serializable {
*/
public TreeData() {
itemToWrapperMap = new LinkedHashMap<>();
- itemToWrapperMap.put(null, new HierarchyWrapper<>(null, null));
+ itemToWrapperMap.put(null, new HierarchyWrapper<>(null));
}
/**
@@ -491,7 +477,7 @@ public class TreeData<T> implements Serializable {
}
private void putItem(T item, T parent) {
- HierarchyWrapper<T> wrappedItem = new HierarchyWrapper<>(item, parent);
+ HierarchyWrapper<T> wrappedItem = new HierarchyWrapper<>(parent);
if (itemToWrapperMap.containsKey(parent)) {
itemToWrapperMap.get(parent).addChild(item);
}
diff --git a/server/src/main/java/com/vaadin/event/ConnectorActionManager.java b/server/src/main/java/com/vaadin/event/ConnectorActionManager.java
index 7363a53b87..8f121015f5 100644
--- a/server/src/main/java/com/vaadin/event/ConnectorActionManager.java
+++ b/server/src/main/java/com/vaadin/event/ConnectorActionManager.java
@@ -77,8 +77,4 @@ public class ConnectorActionManager extends ActionManager {
super.handleAction(action, sender, target);
}
- private static final Logger getLogger() {
- return Logger.getLogger(ConnectorActionManager.class.getName());
- }
-
}
diff --git a/server/src/main/java/com/vaadin/event/EventRouter.java b/server/src/main/java/com/vaadin/event/EventRouter.java
index b07efb6c53..04c05d3af8 100644
--- a/server/src/main/java/com/vaadin/event/EventRouter.java
+++ b/server/src/main/java/com/vaadin/event/EventRouter.java
@@ -254,8 +254,4 @@ public class EventRouter implements MethodEventSource {
return listeners;
}
- private Logger getLogger() {
- return Logger.getLogger(EventRouter.class.getName());
- }
-
}
diff --git a/server/src/main/java/com/vaadin/server/AbstractClientConnector.java b/server/src/main/java/com/vaadin/server/AbstractClientConnector.java
index fce41b1415..00cbb4f7b4 100644
--- a/server/src/main/java/com/vaadin/server/AbstractClientConnector.java
+++ b/server/src/main/java/com/vaadin/server/AbstractClientConnector.java
@@ -485,10 +485,6 @@ public abstract class AbstractClientConnector
return null;
}
- private static Logger getLogger() {
- return Logger.getLogger(AbstractClientConnector.class.getName());
- }
-
/**
* @deprecated As of 7.0, use {@link #markAsDirtyRecursive()} instead
*/
diff --git a/server/src/main/java/com/vaadin/server/VaadinPortletService.java b/server/src/main/java/com/vaadin/server/VaadinPortletService.java
index 077f91afed..41183ad9dd 100644
--- a/server/src/main/java/com/vaadin/server/VaadinPortletService.java
+++ b/server/src/main/java/com/vaadin/server/VaadinPortletService.java
@@ -72,11 +72,6 @@ public class VaadinPortletService extends VaadinService {
return portlet;
}
- private String getPortalProperty(VaadinRequest request,
- String propertyName) {
- return ((VaadinPortletRequest) request).getPortalProperty(propertyName);
- }
-
private String getParameter(VaadinRequest request, String name,
String defaultValue) {
VaadinPortletRequest portletRequest = (VaadinPortletRequest) request;
diff --git a/server/src/main/java/com/vaadin/ui/AbstractComponent.java b/server/src/main/java/com/vaadin/ui/AbstractComponent.java
index bea9ef9e56..92aaa0cb36 100644
--- a/server/src/main/java/com/vaadin/ui/AbstractComponent.java
+++ b/server/src/main/java/com/vaadin/ui/AbstractComponent.java
@@ -1455,7 +1455,4 @@ public abstract class AbstractComponent extends AbstractClientConnector
+ AbstractFieldState.class.getSimpleName());
}
- private static final Logger getLogger() {
- return Logger.getLogger(AbstractComponent.class.getName());
- }
}
diff --git a/server/src/main/java/com/vaadin/ui/DragAndDropWrapper.java b/server/src/main/java/com/vaadin/ui/DragAndDropWrapper.java
index 194a354ad0..7b8183d3bb 100644
--- a/server/src/main/java/com/vaadin/ui/DragAndDropWrapper.java
+++ b/server/src/main/java/com/vaadin/ui/DragAndDropWrapper.java
@@ -461,10 +461,6 @@ public class DragAndDropWrapper extends CustomComponent
return file.getFileSize();
}
- public StreamVariable getReceiver() {
- return ProxyReceiver.this;
- }
-
@Override
public Exception getException() {
if (wrappedEvent instanceof StreamingErrorEvent) {
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java
index ceeec79ac1..0105fd9b4e 100644
--- a/server/src/main/java/com/vaadin/ui/Grid.java
+++ b/server/src/main/java/com/vaadin/ui/Grid.java
@@ -3623,13 +3623,6 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents,
.forEach(this::removeColumn);
}
- private String getIdentifier(Column<T, ?> column) {
- return columnKeys.entrySet().stream()
- .filter(entry -> entry.getValue().equals(column))
- .map(entry -> entry.getKey()).findFirst()
- .orElse(getGeneratedIdentifier());
- }
-
private String getGeneratedIdentifier() {
String columnId = "" + counter;
counter++;
diff --git a/server/src/main/java/com/vaadin/ui/dnd/FileDropTarget.java b/server/src/main/java/com/vaadin/ui/dnd/FileDropTarget.java
index bfb66c4fc4..59197cbc26 100644
--- a/server/src/main/java/com/vaadin/ui/dnd/FileDropTarget.java
+++ b/server/src/main/java/com/vaadin/ui/dnd/FileDropTarget.java
@@ -265,10 +265,6 @@ public class FileDropTarget<T extends AbstractComponent>
return file.getFileSize();
}
- public StreamVariable getReceiver() {
- return FileReceiver.this;
- }
-
@Override
public Exception getException() {
if (wrappedEvent instanceof StreamingErrorEvent) {