Commit 1f53c6b
committed
Simplify OldAutoLocator and AutoDateLocator.
In both classes the `refresh` method only sets the `_locator` attribute,
which is only later called in `__call__` -- but `__call__` also calls
`refresh` first. So we can instead inline the contents of `refresh`
into `__call__`, get rid of the `refresh` implementation (inheriting
the do-nothing implementation of the base class) and get rid of the
`_locator` attribute, as this has no publically observable effect.
Likewise, `AutoDateLocator.set_axis` can go.1 parent db55918 commit 1f53c6b
2 files changed
Lines changed: 14 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | | - | |
1224 | 1223 | | |
1225 | 1224 | | |
1226 | 1225 | | |
| |||
1258 | 1257 | | |
1259 | 1258 | | |
1260 | 1259 | | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
| |||
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | 1282 | | |
1292 | 1283 | | |
1293 | 1284 | | |
| |||
1298 | 1289 | | |
1299 | 1290 | | |
1300 | 1291 | | |
1301 | | - | |
1302 | | - | |
| 1292 | + | |
1303 | 1293 | | |
1304 | 1294 | | |
1305 | 1295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2816 | 2816 | | |
2817 | 2817 | | |
2818 | 2818 | | |
2819 | | - | |
2820 | 2819 | | |
2821 | | - | |
2822 | | - | |
2823 | 2820 | | |
2824 | 2821 | | |
2825 | | - | |
2826 | | - | |
2827 | | - | |
2828 | | - | |
2829 | | - | |
2830 | | - | |
2831 | | - | |
2832 | | - | |
2833 | | - | |
2834 | 2822 | | |
2835 | 2823 | | |
2836 | 2824 | | |
2837 | 2825 | | |
2838 | | - | |
| 2826 | + | |
| 2827 | + | |
2839 | 2828 | | |
2840 | | - | |
2841 | | - | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
2842 | 2832 | | |
| 2833 | + | |
| 2834 | + | |
2843 | 2835 | | |
2844 | | - | |
2845 | | - | |
| 2836 | + | |
| 2837 | + | |
2846 | 2838 | | |
2847 | 2839 | | |
2848 | 2840 | | |
| |||
0 commit comments