Skip to content

Level.loadTiles does not need a label. #6

@JustGregory-zz

Description

@JustGregory-zz

Just for correctness' sake, @2D-Game-Engine/src/ca/vanzeben/game/level/Level.java (specifically the loadTiles method) does not actully need the given line-label, as breaking from the innermost for loop would actually do the very same thing anyway. It's only necessary if you were to have additional code after that inner for-loop but before proceeding to the middle for-loop iteration.

Recommendation: take the label reference and the label itself out of the method. A break; call will function as expected anyway.

(I didn't look yet for other instances of the same thing; however, there may be similar optimizations that can be performed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions