cider 2026-10-28

I use the cljr-clean-ns for cleaning unused requires from a namespace. Anyone know if there’s something like this for a function, that will clear unused names / bindings from argument maps?

Clojure LSP will mark unused function arguments (and clean-ns to remove unused lib requires). Not sure if it also removes function arguments though. You may need to be careful (or exclude) public facing functions so as not to break the API. https://github.com/borkdude/carve finds and removes vars (e.g. unused functions rather than just arguments) and carve has emacs integration.

ah nice, maybe time to revisit lsp i tried it ~5 years ago and it was too slow, but i imagine it’s come on

I can run Clojure LSP with Emacs on an old android phone or tablet if coding whist travelling. So its quite speedy 😄