Removed echos from uri module.

This commit is contained in:
Dominik Picheta 2012-05-07 14:01:59 +02:00
commit dfa1f7ce62

View file

@ -16,7 +16,6 @@ proc `/`*(a, b: TUrl): TUrl =
## Joins two URLs together, separating them with / if needed. ## Joins two URLs together, separating them with / if needed.
var urlS = $a var urlS = $a
var bS = $b var bS = $b
echo(urlS, " & ", bS)
if urlS == "": return b if urlS == "": return b
if urlS[urlS.len-1] != '/': if urlS[urlS.len-1] != '/':
urlS.add('/') urlS.add('/')
@ -25,7 +24,6 @@ proc `/`*(a, b: TUrl): TUrl =
else: else:
urlS.add(bs) urlS.add(bs)
result = TUrl(urlS) result = TUrl(urlS)
echo(result)
proc add*(url: var TUrl, a: TUrl) = proc add*(url: var TUrl, a: TUrl) =
## Appends url to url. ## Appends url to url.