Skip to content

Commit

Permalink
remove old the-class impl
Browse files Browse the repository at this point in the history
  • Loading branch information
fogus committed Dec 10, 2024
1 parent 9d55d9f commit 8f6ebbf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/clj/clojure/genclass.clj
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,6 @@
strx
(str "java.lang." strx))))))

#_(defn- ^Class the-class [x]
(cond
(class? x) x
(contains? prim->class x) (prim->class x)
:else (let [strx (str x)]
(clojure.lang.RT/classForName
(if (some #{\. \[} strx)
strx
(str "java.lang." strx))))))

;; someday this can be made codepoint aware
(defn- valid-java-method-name
[^String s]
Expand Down

0 comments on commit 8f6ebbf

Please sign in to comment.