summaryrefslogtreecommitdiffstats
path: root/src/main/scala/router.scala
diff options
context:
space:
mode:
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],