Skip to content

Commit 92de06b

Browse files
committed
Revert "- add back printing logic"
This reverts commit f9d7b17.
1 parent 9ca7931 commit 92de06b

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12487,10 +12487,7 @@ reduces them without incurring seq initialization"
1248712487
(-invoke [coll k]
1248812488
(-lookup coll k))
1248912489
(-invoke [coll k not-found]
12490-
(-lookup coll k not-found))
12491-
12492-
IPrintWithWriter
12493-
(-pr-writer [coll writer opts] (pr-sequential-writer writer pr-writer "[" " " "]" opts coll)))
12490+
(-lookup coll k not-found)))
1249412491

1249512492
(set! (. Vector -EMPTY) (Vector. nil (array)))
1249612493

@@ -12586,29 +12583,12 @@ reduces them without incurring seq initialization"
1258612583
(-invoke [coll k]
1258712584
(-lookup coll k))
1258812585
(-invoke [coll k not-found]
12589-
(-lookup coll k not-found))
12590-
12591-
IPrintWithWriter
12592-
(-pr-writer [coll writer opts]
12593-
(print-map coll pr-writer writer opts)))
12586+
(-lookup coll k not-found)))
1259412587

1259512588
(set! (. ObjMap -EMPTY) (ObjMap. nil (array) (js-obj)))
1259612589

1259712590
(set! (. ObjMap -fromObject) (fn [ks obj] (ObjMap. nil ks obj)))
1259812591

12599-
(defn obj-map
12600-
"keyval => key val
12601-
Returns a new object map with supplied mappings."
12602-
[& keyvals]
12603-
(let [ks (array)
12604-
obj (js-obj)]
12605-
(loop [kvs (seq keyvals)]
12606-
(if kvs
12607-
(do (.push ks (first kvs))
12608-
(gobject/set obj (first kvs) (second kvs))
12609-
(recur (nnext kvs)))
12610-
(.fromObject ObjMap ks obj)))))
12611-
1261212592
; The keys field is an array of all keys of this map, in no particular
1261312593
; order. Each key is hashed and the result used as a property name of
1261412594
; hashobj. Each values in hashobj is actually a bucket in order to handle hash
@@ -12701,11 +12681,7 @@ reduces them without incurring seq initialization"
1270112681
(-invoke [coll k]
1270212682
(-lookup coll k))
1270312683
(-invoke [coll k not-found]
12704-
(-lookup coll k not-found))
12705-
12706-
IPrintWithWriter
12707-
(-pr-writer [coll writer opts]
12708-
(print-map coll pr-writer writer opts)))
12684+
(-lookup coll k not-found)))
1270912685

1271012686
(set! (. HashMap -EMPTY) (HashMap. nil 0 (js-obj)))
1271112687

@@ -12763,9 +12739,6 @@ reduces them without incurring seq initialization"
1276312739
(-invoke [coll k]
1276412740
(-lookup coll k))
1276512741
(-invoke [coll k not-found]
12766-
(-lookup coll k not-found))
12767-
12768-
IPrintWithWriter
12769-
(-pr-writer [coll writer opts] (pr-sequential-writer writer pr-writer "#{" " " "}" opts coll)))
12742+
(-lookup coll k not-found)))
1277012743

1277112744
(set! (. Set -EMPTY) (Set. nil (hash-map)))

0 commit comments

Comments
 (0)