cutile-python icon indicating copy to clipboard operation
cutile-python copied to clipboard

Remove redundant tile size checks

Open NikeNano opened this issue 1 week ago • 0 comments

Description

The block following TILE_X = max(1, 1024 // TILE_Y) seems unnecessary. Since integer division ensures (1024 // Y) * Y <= 1024 and max(1, ...) prevents TILE_X from being 0, the subsequent checks appear to be unreachable code that re-calculates the same value. Can we remove this simplification or am I missing something ?

Checklist

  • [x] I am familiar with the Contributing Guidelines.
  • [x] New or existing tests cover these changes.
  • [x] The documentation is up to date with these changes.

NikeNano avatar Dec 15 '25 21:12 NikeNano