Skip to content
Browse files

removed unused methods

  • Loading branch information...
1 parent 1ab6580 commit 22efa5d7e8556421d949ce2133c06152de74b479 @paulosuzart committed Oct 14, 2011
Showing with 6 additions and 10 deletions.
  1. +6 −10 src/main/scala/codemountain/finagle/Servers.scala
View
16 src/main/scala/codemountain/finagle/Servers.scala
@@ -91,18 +91,14 @@ object Advanced {
object SuperAdvanced {
import Helpers._
- def ~>(request: Request) = {
- request.params
- }
val superAd = ~~ {
-
case (Get, request) =>
- (Path(request.path)) match {
- case Root / "user" / Integer(id) =>
- val response = request.response
- response.setContentString("The user id is %d\n\n" format id)
- Future.value(response)
- }
+ (Path(request.path)) match {
+ case Root / "user" / Integer(id) =>
+ val response = request.response
+ response.setContentString("The user id is %d\n\n" format id)
+ Future.value(response)
+ }
}
def main(args: Array[String]) {

0 comments on commit 22efa5d

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