Skip to content

Commit

Permalink
removed unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosuzart committed Oct 14, 2011
1 parent 1ab6580 commit 22efa5d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/main/scala/codemountain/finagle/Servers.scala
Expand Up @@ -91,18 +91,14 @@ object Advanced {
object SuperAdvanced { object SuperAdvanced {
import Helpers._ import Helpers._


def ~>(request: Request) = {
request.params
}
val superAd = ~~ { val superAd = ~~ {

case (Get, request) => case (Get, request) =>
(Path(request.path)) match { (Path(request.path)) match {
case Root / "user" / Integer(id) => case Root / "user" / Integer(id) =>
val response = request.response val response = request.response
response.setContentString("The user id is %d\n\n" format id) response.setContentString("The user id is %d\n\n" format id)
Future.value(response) Future.value(response)
} }
} }


def main(args: Array[String]) { def main(args: Array[String]) {
Expand Down

0 comments on commit 22efa5d

Please sign in to comment.