Commit b2aac13
Remove dead code in the DGCP geodesic-curvature engine
Two behavior-preserving removals in find_gcurvature, verified against
test/dgp.jl + test/lorentz.jl (unchanged pass):
- Delete the unreachable `elseif f_curvature == Affine` branch. The
chain opens with `f_curvature == Convex || f_curvature == Affine`,
which catches every Affine atom first, so the later Affine block can
never run; the `|| f_curvature == Affine` on the Concave branch is
dead for the same reason and is dropped.
- Delete the duplicate `add_gdcprule(diag, SPD, ...)` in spd.jl. It is
identical to the `add_gdcprule(LinearAlgebra.diag, ...)` registration
(diag === LinearAlgebra.diag) and, since gdcprules_dict is keyed by
function, only overwrote it with the same value.
The always-false `sum_log_eigmax` comparison and the (behaviorally
inert) distance manifold-key collision are left untouched and flagged
in the PR for an intent decision.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 7d44d89 commit b2aac13
2 files changed
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 223 | | |
233 | 224 | | |
234 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | 193 | | |
196 | 194 | | |
197 | 195 | | |
| |||
0 commit comments