cutile-python
cutile-python copied to clipboard
Remove redundant tile size checks
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.