summaryrefslogtreecommitdiffstats
path: root/src/main/scala/router.scala
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-02-15 12:35:45 -0600
committerJesse Luehrs <doy@tozt.net>2013-02-15 12:35:45 -0600
commitc7a6a865e2159a37fa5b57d0795d6a43f7c8d78b (patch)
treed78b0b23f66edad36acfc67cf9e362555a805159 /src/main/scala/router.scala
parent575ef538743cb2c1929b5df54c99ce7800f7e3b3 (diff)
downloadscala-path-router-c7a6a865e2159a37fa5b57d0795d6a43f7c8d78b.tar.gz
scala-path-router-c7a6a865e2159a37fa5b57d0795d6a43f7c8d78b.zip
insertRoute is not particularly useful
Diffstat (limited to 'src/main/scala/router.scala')
-rw-r--r--src/main/scala/router.scala13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/main/scala/router.scala b/src/main/scala/router.scala
index 3b15ca8..7f60dec 100644
--- a/src/main/scala/router.scala
+++ b/src/main/scala/router.scala
@@ -13,19 +13,6 @@ class Router[T] {
routes += new Route(path, defaults, validations, target)
}
- def insertRoute (
- path: String,
- target: T,
- defaults: Map[String, String] = Map(),
- validations: Map[String, Regex] = Map(),
- at: Int = 0
- ) {
- routes insert (
- at min routes.length,
- new Route(path, defaults, validations, target)
- )
- }
-
def route (path: String): Option[Match[T]] = {
def testRoutes (
components: Seq[String],