Commit 2990fd3
committed
Optimize setting units to None when they're already None.
Previously, we skipped the axis update when replacing a non-None unit by
the same unit, but (needlessly) not when replacing None by itself.
Also the newer implementation is simpler.1 parent c221853 commit 2990fd3
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1508 | 1508 | | |
1509 | 1509 | | |
1510 | 1510 | | |
1511 | | - | |
1512 | | - | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
1523 | 1517 | | |
1524 | 1518 | | |
1525 | 1519 | | |
| |||
0 commit comments