mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
clock: Remove unused variables
This commit is contained in:
parent
c2bc6408a3
commit
0eb5ef0141
@ -113,8 +113,6 @@ func updateFPSAndTPS(now int64, count int) {
|
|||||||
|
|
||||||
const UncappedTPS = -1
|
const UncappedTPS = -1
|
||||||
|
|
||||||
var previousNow int64
|
|
||||||
|
|
||||||
// Update updates the inner clock state and returns an integer value
|
// Update updates the inner clock state and returns an integer value
|
||||||
// indicating how many times the game should update based on given tps.
|
// indicating how many times the game should update based on given tps.
|
||||||
// tps represents TPS (ticks per second).
|
// tps represents TPS (ticks per second).
|
||||||
@ -136,6 +134,5 @@ func Update(tps int) int {
|
|||||||
}
|
}
|
||||||
updateFPSAndTPS(n, c)
|
updateFPSAndTPS(n, c)
|
||||||
|
|
||||||
previousNow = n
|
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user