From 7646cfa49baeb4029b4af74b3da97b61b3363215 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Mon, 6 Mar 2017 15:27:09 +0200 Subject: Add missing since, remove unused command --- .../main/java/com/vaadin/v7/client/widgets/Grid.java | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'compatibility-client') diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java index ea7901773d..7ba5c9cc82 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java @@ -1316,23 +1316,6 @@ public class Grid extends ResizeComposite implements HasSelectionHandlers, private static final String ERROR_CLASS_NAME = "error"; private static final String NOT_EDITABLE_CLASS_NAME = "not-editable"; - ScheduledCommand fieldFocusCommand = new ScheduledCommand() { - private int count = 0; - - @Override - public void execute() { - Element focusedElement = WidgetUtil.getFocusedElement(); - if (focusedElement == grid.getElement() - || focusedElement == Document.get().getBody() - || count > 2) { - focusColumn(focusedColumnIndexDOM); - } else { - ++count; - Scheduler.get().scheduleDeferred(this); - } - } - }; - /** * A handler for events related to the Grid editor. Responsible for * opening, moving or closing the editor based on the received event. -- cgit v1.2.3