Skip to content
This repository
Browse code

- Cleanup unused code

  • Loading branch information...
commit 4a427b8a736523b740e4e39666ee8236b251a3de 1 parent 2b5ca04
Alex Biehl authored March 25, 2013
40  src/main/java/org/fhw/asta/kasse/client/controller/TopbarController.java
@@ -4,13 +4,8 @@
4 4
 import org.fhw.asta.kasse.client.event.LoginEventHandler;
5 5
 import org.fhw.asta.kasse.client.widget.topbar.TopBarWidgetContainer;
6 6
 import org.fhw.asta.kasse.client.widget.topbar.ready.ReadyTopBarWidget;
7  
-import org.fhw.asta.kasse.shared.model.Article;
8 7
 import org.fhw.asta.kasse.shared.service.article.ArticleServiceAsync;
9 8
 
10  
-import com.google.gwt.event.dom.client.ChangeEvent;
11  
-import com.google.gwt.event.dom.client.ChangeHandler;
12  
-import com.google.gwt.user.client.rpc.AsyncCallback;
13  
-import com.google.gwt.user.client.ui.HasText;
14 9
 import com.google.inject.Inject;
15 10
 import com.google.web.bindery.event.shared.EventBus;
16 11
 
@@ -38,26 +33,7 @@ private void onLogin() {
38 33
 		
39 34
 		//readyTopbarWidget.getQuickBoxHandlers().addChangeHandler(new QuickBoxHandler());
40 35
 	}
41  
-	
42  
-	private class QuickBoxHandler implements ChangeHandler {
43  
-
44  
-		@Override
45  
-		public void onChange(ChangeEvent event) {
46  
-			//HasText quickBox = readyTopbarWidget.getQuickBox();
47  
-			
48  
-			
49  
-			String qText ="";
50  
-			
51  
-			if(qText.matches("[a-zA-Z][0-9]+")){
52  
-				if(qText.matches("[aA][0-9]+")){
53  
-		//			articleService.getArticleById(qText.replaceAll("[a-zA-Z]", ""), new ArticleCallback());
54  
-				} // else if(qText.matches.....
55  
-			}
56  
-			
57  
-		}
58 36
 		
59  
-	}
60  
-	
61 37
 	private class LoginHandler implements LoginEventHandler {
62 38
 
63 39
 		@Override
@@ -66,21 +42,5 @@ public void onLogin(LoginEvent loginEvent) {
66 42
 		}
67 43
 		
68 44
 	}
69  
-	
70  
-	private class ArticleCallback implements AsyncCallback<Article> {
71  
-
72  
-		@Override
73  
-		public void onFailure(Throwable caught) {
74  
-			// TODO Auto-generated method stub
75  
-			
76  
-		}
77  
-
78  
-		@Override
79  
-		public void onSuccess(Article result) {
80  
-			basketController.addBasketPosition(result);			
81  
-		}
82 45
 		
83  
-	}
84  
-	
85  
-	
86 46
 }
1  src/main/java/org/fhw/asta/kasse/client/widget/topbar/ready/ReadyTopBarWidgetImpl.java
@@ -5,7 +5,6 @@
5 5
 import org.fhw.asta.kasse.client.widget.topbar.modules.searchbox.SearchBoxWidget;
6 6
 
7 7
 import com.google.gwt.core.client.GWT;
8  
-import com.google.gwt.event.dom.client.HasChangeHandlers;
9 8
 import com.google.gwt.uibinder.client.UiBinder;
10 9
 import com.google.gwt.uibinder.client.UiField;
11 10
 import com.google.gwt.user.client.ui.Composite;

0 notes on commit 4a427b8

Please sign in to comment.
Something went wrong with that request. Please try again.