Skip to content

Instantly share code, notes, and snippets.

@Bike
Created April 24, 2024 13:24
Show Gist options
  • Save Bike/5e4e8c0d687ac732d6d73ad67b5f6dea to your computer and use it in GitHub Desktop.
Save Bike/5e4e8c0d687ac732d6d73ad67b5f6dea to your computer and use it in GitHub Desktop.
get a list of uncalled functions in package
(defun uncalled (package)
(loop for s being the present-symbols of package
for ss = `(setf ,s)
when (and (fboundp s) (not (macro-function s)) (not (special-operator-p s)) (null (ext:who-calls s)))
collect s
when (and (fboundp ss) (null (ext:who-calls ss)))
collect ss))
;; (uncalled :alexandria) => (alexandria::racons alexandria:hash-table-alist ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment