Commit f06bbdc
Remove redundant VTable::child overrides
Both Patched and PythonVTable overrode VTable::child with behavior
identical to the trait default: all four Patched slots are required
(always Some), so the default idx-th non-None slot lookup returns
exactly slots[idx], and PythonArray has no slots with nchildren() == 0,
so its panicking override was unreachable behind the idx < nchildren
guard in every caller.
Signed-off-by: "Joe Isaacs" <joe.isaacs@live.co.uk>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XbjnDVZQ9KqXgAAhxy9g7D1 parent 05c7c2f commit f06bbdc
2 files changed
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 141 | | |
152 | 142 | | |
153 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
| |||
0 commit comments