main: remove unused code - twitch-go - twitch.tv web application in Go
(HTM) git clone git://git.codemadness.org/twitch-go
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c7f5a2ac3da3ff239c2e6294060e94ba1bcabe21
(DIR) parent 46647bd75d4d84e1ae0ee82876dd7fed4fa2ec0d
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 11 Apr 2015 20:46:04 +0200
main: remove unused code
Diffstat:
M main.go | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
(DIR) diff --git a/main.go b/main.go
@@ -119,10 +119,6 @@ type TwitchGames struct {
}
}
-type Page struct {
- CacheTimeout int // <= 0 is never.
-}
-
type Route struct {
Regexstr string
Re *regexp.Regexp
@@ -428,7 +424,7 @@ func ReloadTemplateHandler(w http.ResponseWriter, r *http.Request, m *RouteMatch
}
func usage() {
- fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0])
+ fmt.Fprintf(os.Stderr, "Usage: %s\n", os.Args[0])
flag.PrintDefaults()
}