Permalink
Browse files

- Cleanup unused code

  • Loading branch information...
1 parent 2b5ca04 commit 4a427b8a736523b740e4e39666ee8236b251a3de @alexbiehl alexbiehl committed Mar 25, 2013
@@ -4,13 +4,8 @@
import org.fhw.asta.kasse.client.event.LoginEventHandler;
import org.fhw.asta.kasse.client.widget.topbar.TopBarWidgetContainer;
import org.fhw.asta.kasse.client.widget.topbar.ready.ReadyTopBarWidget;
-import org.fhw.asta.kasse.shared.model.Article;
import org.fhw.asta.kasse.shared.service.article.ArticleServiceAsync;
-import com.google.gwt.event.dom.client.ChangeEvent;
-import com.google.gwt.event.dom.client.ChangeHandler;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.google.gwt.user.client.ui.HasText;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
@@ -38,26 +33,7 @@ private void onLogin() {
//readyTopbarWidget.getQuickBoxHandlers().addChangeHandler(new QuickBoxHandler());
}
-
- private class QuickBoxHandler implements ChangeHandler {
-
- @Override
- public void onChange(ChangeEvent event) {
- //HasText quickBox = readyTopbarWidget.getQuickBox();
-
-
- String qText ="";
-
- if(qText.matches("[a-zA-Z][0-9]+")){
- if(qText.matches("[aA][0-9]+")){
- // articleService.getArticleById(qText.replaceAll("[a-zA-Z]", ""), new ArticleCallback());
- } // else if(qText.matches.....
- }
-
- }
- }
-
private class LoginHandler implements LoginEventHandler {
@Override
@@ -66,21 +42,5 @@ public void onLogin(LoginEvent loginEvent) {
}
}
-
- private class ArticleCallback implements AsyncCallback<Article> {
-
- @Override
- public void onFailure(Throwable caught) {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void onSuccess(Article result) {
- basketController.addBasketPosition(result);
- }
- }
-
-
}
@@ -5,7 +5,6 @@
import org.fhw.asta.kasse.client.widget.topbar.modules.searchbox.SearchBoxWidget;
import com.google.gwt.core.client.GWT;
-import com.google.gwt.event.dom.client.HasChangeHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;

0 comments on commit 4a427b8

Please sign in to comment.