Removed ineffectual assignments
targetLayerIndex gets re-set, but won't be used after that assignment.
This commit is contained in:
parent
09296c0214
commit
67d2e32278
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user