Skip to content

Commit

Permalink
don't call sorted-map at runtime, this dead code eliminates all the
Browse files Browse the repository at this point in the history
sorted map related code if never used.
  • Loading branch information
swannodette committed Apr 27, 2013
1 parent e706055 commit 4fbbfe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cljs/cljs/core.cljs
Expand Up @@ -5868,7 +5868,8 @@ reduces them without incurring seq initialization"
(-invoke [coll k not-found]
(-lookup coll k not-found)))

(set! cljs.core.PersistentTreeSet/EMPTY (PersistentTreeSet. nil (sorted-map) 0))
(set! cljs.core.PersistentTreeSet/EMPTY
(PersistentTreeSet. nil cljs.core.PersistentTreeMap/EMPTY 0))

(defn hash-set
([] cljs.core.PersistentHashSet/EMPTY)
Expand Down

0 comments on commit 4fbbfe6

Please sign in to comment.