From 6c1339027c545781ee57cba22ccec42a705f09e5 Mon Sep 17 00:00:00 2001
From: Paul-Christian Volkmer <paul-christian.volkmer@mni.thm.de>
Date: Wed, 12 Sep 2012 13:54:23 +0200
Subject: [PATCH] Removed old REST calls to feedback, because of SocketIO

---
 .../de/thm/arsnova/SessionController.java     | 20 -------------------
 1 file changed, 20 deletions(-)

diff --git a/src/main/java/de/thm/arsnova/SessionController.java b/src/main/java/de/thm/arsnova/SessionController.java
index 89bab167..87460a3c 100644
--- a/src/main/java/de/thm/arsnova/SessionController.java
+++ b/src/main/java/de/thm/arsnova/SessionController.java
@@ -28,7 +28,6 @@ import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 
-import de.thm.arsnova.entities.Feedback;
 import de.thm.arsnova.entities.Session;
 import de.thm.arsnova.services.ISessionService;
 
@@ -58,23 +57,4 @@ public class SessionController {
 		response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
 		return null;
 	}
-	
-	@RequestMapping(value="/session/{sessionkey}/feedback", method=RequestMethod.GET)
-	public Feedback getFeedback(@PathVariable String sessionkey, HttpServletResponse response) {
-		Feedback feedback = sessionService.getFeedback(sessionkey);
-		if (feedback != null) return feedback;
-		
-		response.setStatus(HttpStatus.NOT_FOUND.value());
-		return null;
-	}
-	
-	@RequestMapping(value="/session/{sessionkey}/feedback", method=RequestMethod.POST)
-	public String postFeedback(@PathVariable String sessionkey, @RequestBody int value, HttpServletResponse response) {
-		if (sessionService.postFeedback(sessionkey, value)) {
-			response.setStatus(HttpStatus.CREATED.value());
-			return null;
-		}
-		response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
-		return null;
-	}
 }
-- 
GitLab