Removed ineffectual assignments

targetLayerIndex gets re-set, but won't be used after that assignment.
This commit is contained in:
Christian Muehlhaeuser 2019-07-19 12:49:43 +02:00
parent 09296c0214
commit 67d2e32278
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E

View File

@ -148,7 +148,6 @@ func (controller *LayerController) PageDown() error {
if targetLayerIndex > len(controller.Layers) {
step -= targetLayerIndex - (len(controller.Layers) - 1)
targetLayerIndex = controller.LayerIndex + step
}
if step > 0 {
@ -167,7 +166,6 @@ func (controller *LayerController) PageUp() error {
if targetLayerIndex < 0 {
step += targetLayerIndex
targetLayerIndex = controller.LayerIndex - step
}
if step > 0 {