Skip to content

Commit

Permalink
refactor: remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Apr 24, 2016
1 parent c86ddf8 commit f0cc65f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions match.go
@@ -1,14 +1,12 @@
package router

import "net/url"
import "fmt"

// Match matches the given path string againts the register pattern.
func Match(pat, path string) (url.Values, bool) {
var i, j int
p := make(url.Values)

fmt.Printf("> Test: %s %s\n", pat, path)
for i < len(path) {
switch {
case j >= len(pat):
Expand Down
3 changes: 0 additions & 3 deletions router.go
Expand Up @@ -4,7 +4,6 @@ package router

import (
"errors"
"fmt"
"net/http"
"net/url"
"strings"
Expand Down Expand Up @@ -233,13 +232,11 @@ func doMatch(routes []*Route, path string) (url.Values, *Route) {
if routes == nil || len(routes) == 0 {
return nil, nil
}
fmt.Printf("> Routes: %d \n", len(routes))
for _, route := range routes {
if params, ok := route.Match(path); ok {
return params, route
}
}
fmt.Printf(">>>>>>> End matching\n")
return nil, nil
}

Expand Down

0 comments on commit f0cc65f

Please sign in to comment.