Remove stale console logs from render throttler

This commit is contained in:
Ivan Danyliuk 2018-10-23 17:04:54 +02:00
parent 9b72606c7d
commit 1ac4d92d6f
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF

View File

@ -1,7 +1,6 @@
package main
import (
"fmt"
"time"
)
@ -32,14 +31,12 @@ func NewRenderThrottler() *RenderThrottler {
// Disable disables render throttling.
func (r *RenderThrottler) Disable() {
fmt.Printf("Switching ON rendering")
r.needRendering = true
r.lastUpdate = time.Now().Unix()
}
// Enable enables render throttling.
func (r *RenderThrottler) Enable() {
fmt.Printf("Switching off rendering")
r.needRendering = false
}