removed some commented out code

This commit is contained in:
BroodjeAap 2020-07-25 12:16:33 +00:00
parent b0a900f36f
commit 3e2e9a8182

View file

@ -39,25 +39,6 @@ func NewStream(Name string, URL string) *Stream {
WatchAreas: make([]WatchArea, 0),
Timeouts: 0,
}
/*
stream.WatchAreas = append(stream.WatchAreas,
WatchArea{
Name: "test",
Color: color.RGBA{255, 0, 255, 255},
Area: image.Rect(30, 30, 400, 200),
},
WatchArea{
Name: "test2",
Color: color.RGBA{0, 255, 255, 255},
Area: image.Rect(800, 30, 1000, 500),
},
WatchArea{
Name: "test3",
Color: color.RGBA{255, 255, 0, 255},
Area: image.Rect(50, 400, 450, 700),
},
)
*/
stream.WriteStreamJSON()
return &stream
}
@ -80,9 +61,8 @@ func (s *Stream) Update() {
log.Println(err)
s.Timeouts++
return
} else {
s.Timeouts = 0
}
s.Timeouts = 0
img, err := ioutil.ReadAll(resp.Body)
defer resp.Body.Close()