Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed unused methods

  • Loading branch information...
commit 22efa5d7e8556421d949ce2133c06152de74b479 1 parent 1ab6580
Paulo Suzart authored

Showing 1 changed file with 6 additions and 10 deletions. Show diff stats Hide diff stats

  1. +6 10 src/main/scala/codemountain/finagle/Servers.scala
16 src/main/scala/codemountain/finagle/Servers.scala
@@ -91,18 +91,14 @@ object Advanced {
91 91 object SuperAdvanced {
92 92 import Helpers._
93 93
94   - def ~>(request: Request) = {
95   - request.params
96   - }
97 94 val superAd = ~~ {
98   -
99 95 case (Get, request) =>
100   - (Path(request.path)) match {
101   - case Root / "user" / Integer(id) =>
102   - val response = request.response
103   - response.setContentString("The user id is %d\n\n" format id)
104   - Future.value(response)
105   - }
  96 + (Path(request.path)) match {
  97 + case Root / "user" / Integer(id) =>
  98 + val response = request.response
  99 + response.setContentString("The user id is %d\n\n" format id)
  100 + Future.value(response)
  101 + }
106 102 }
107 103
108 104 def main(args: Array[String]) {

0 comments on commit 22efa5d

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