Skip to content

Deprecate cider-ensure-op-supported#4028

Merged
bbatsov merged 1 commit into
masterfrom
deprecate-ensure-op-supported
Jun 26, 2026
Merged

Deprecate cider-ensure-op-supported#4028
bbatsov merged 1 commit into
masterfrom
deprecate-ensure-op-supported

Conversation

@bbatsov

@bbatsov bbatsov commented Jun 26, 2026

Copy link
Copy Markdown
Member

Follow-up to the guard-centralization work (#4027). Op support is now enforced centrally by the nREPL senders (cider--ensure-request-op-supported), so no command calls cider-ensure-op-supported anymore.

Rather than add a custom lint asserting it has zero callers, just make-obsolete it: the byte-compiler then flags any new use, and the compile job runs --warnings-as-errors, so a new internal call fails CI for free. Simpler and more idiomatic. The function still works for any external callers.

Also drops the now-dead test references left over from the sweep: the spies/stubs on it (no-ops, since commands no longer call it) and the per-command "op not supported" specs - that behavior is covered by the central cider--ensure-request-op-supported tests.

Clean eldev -dtT compile --warnings-as-errors (no obsolete warnings, since our own code has no callers) and full suite green.

Op support is now enforced centrally by the nREPL senders (see
`cider--ensure-request-op-supported'), so commands no longer call this.
Mark it obsolete so the byte-compiler flags any new use - simpler and
more idiomatic than a custom lint for the same purpose.  The function
still works for any external callers.

Drop the now-dead test spies/stubs and the per-command "op not
supported" specs; that behavior is covered by the central helper's
tests.
@bbatsov bbatsov merged commit 1710f2b into master Jun 26, 2026
13 checks passed
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