Skip to content

chore: drop unused funcs1ArgD declarations; clear stale TODO on derivative maps#40

Draft
hozblok wants to merge 1 commit into
masterfrom
chore/audit-unused-derivative-maps
Draft

chore: drop unused funcs1ArgD declarations; clear stale TODO on derivative maps#40
hozblok wants to merge 1 commit into
masterfrom
chore/audit-unused-derivative-maps

Conversation

@hozblok
Copy link
Copy Markdown
Owner

@hozblok hozblok commented May 19, 2026

Closes TODO src/cpp/cseval/cseval.hpp:311 (// names: TODO: delete me?).

Audit

The comment questioned three static-member maps. Grep across the whole tree:

Map Status
functionsTwoArgsDLeft USED — default argument to calculate_derivative(...) in both cseval.hpp / cseval_complex.hpp; defined in the matching .cpp files.
functionsTwoArgsDRight USED — same.
funcs1ArgD UNUSED — declared in both cseval.hpp:314 and cseval_complex.hpp:316, never defined, never referenced anywhere else under src/cpp/.

Change

  • Delete the two funcs1ArgD static-member declarations (one real, one complex).
  • Drop TODO: delete me? from cseval.hpp's comment now that the audit answered it.
  • Keep functionsTwoArgsDLeft / functionsTwoArgsDRight — they're load-bearing.

No behavior change. Full suite 388/388 (3 xfailed unchanged).

…ative maps

Audit of the three maps the TODO questioned:

  functionsTwoArgsDLeft   USED — default arg to calculate_derivative; defined
                                  in cseval.cpp and cseval_complex.cpp
  functionsTwoArgsDRight  USED — same
  funcs1ArgD              UNUSED — declared in both headers, never defined,
                                   never referenced anywhere else in src/cpp

Delete the two unused `funcs1ArgD` static-member declarations (one in
cseval.hpp, one in cseval_complex.hpp). Drop the "TODO: delete me?"
question from cseval.hpp's comment now that the audit answered it.

No behavior change. Full suite 388/388 (3 xfailed unchanged).

Closes TODO src/cpp/cseval/cseval.hpp:311.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant