tools/fast: remove unused function

pull/3197/head
Don Alfons Nisnoni 2019-12-23 18:37:52 +08:00 committed by Alexander Medvednikov
parent 137a473bb7
commit 4498dc6a47
2 changed files with 1 additions and 6 deletions

View File

@ -44,9 +44,6 @@
function int(src) {
return src - 0;
}
function str(src) {
return src + "";
}
function getClassName(x) {
if (x == 0)
return "equal";

View File

@ -121,8 +121,7 @@ pub fn (req &Request) do() ?Response {
return error('http.request.do: invalid URL "$req.url"')
}
mut rurl := url
mut resp := Response{
}
mut resp := Response{}
mut no_redirects := 0
for {
if no_redirects == max_redirects {
@ -252,4 +251,3 @@ pub fn escape(s string) string {
}
type wsfn fn(s string, ptr voidptr)