From 49ef8465e461c22095de7de12e87ead3f42b45e7 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 29 Nov 2012 18:52:20 +0200 Subject: Removed dead code (#10128, #9552) Change-Id: I0197d14072e8948d338829e51cc71c260e869412 --- client/src/com/vaadin/client/ui/VAccordion.java | 13 ------------- client/src/com/vaadin/client/ui/VTabsheet.java | 9 --------- client/src/com/vaadin/client/ui/VTabsheetBase.java | 7 ------- 3 files changed, 29 deletions(-) diff --git a/client/src/com/vaadin/client/ui/VAccordion.java b/client/src/com/vaadin/client/ui/VAccordion.java index d4dad3dc64..962b13e4cd 100644 --- a/client/src/com/vaadin/client/ui/VAccordion.java +++ b/client/src/com/vaadin/client/ui/VAccordion.java @@ -207,19 +207,6 @@ public class VAccordion extends VTabsheetBase { } - @Override - protected void selectTab(final int index, final UIDL contentUidl) { - StackItem item = getStackItem(index); - if (index != activeTabIndex) { - open(index); - iLayout(); - // TODO Check if this is needed - client.runDescendentsLayout(this); - - } - item.setContent(contentUidl); - } - public void onSelectTab(StackItem item) { final int index = getWidgetIndex(item); if (index != activeTabIndex && !disabled && !readonly diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java index 63aeaa2fc7..a63af0ba6f 100644 --- a/client/src/com/vaadin/client/ui/VTabsheet.java +++ b/client/src/com/vaadin/client/ui/VTabsheet.java @@ -918,15 +918,6 @@ public class VTabsheet extends VTabsheetBase implements Focusable, } } - @Override - protected void selectTab(int index, final UIDL contentUidl) { - if (index != activeTabIndex) { - activeTabIndex = index; - tb.selectTab(activeTabIndex); - } - renderContent(contentUidl); - } - private void renderContent(final UIDL contentUIDL) { final ComponentConnector content = client.getPaintable(contentUIDL); Widget newWidget = content.getWidget(); diff --git a/client/src/com/vaadin/client/ui/VTabsheetBase.java b/client/src/com/vaadin/client/ui/VTabsheetBase.java index 02e29a5a87..16d81e569a 100644 --- a/client/src/com/vaadin/client/ui/VTabsheetBase.java +++ b/client/src/com/vaadin/client/ui/VTabsheetBase.java @@ -68,13 +68,6 @@ public abstract class VTabsheetBase extends ComplexPanel { public abstract void renderTab(final UIDL tabUidl, int index, boolean selected, boolean hidden); - /** - * Implement in extending classes. This method should render any previously - * non-cached content and set the activeTabIndex property to the specified - * index. - */ - protected abstract void selectTab(int index, final UIDL contentUidl); - /** * Implement in extending classes. This method should return the number of * tabs currently rendered. -- cgit v1.2.3