Skip to content

Commit 7bd33f5

Browse files
committed
remove type-hints we no longer need since implements? usage can
now infer
1 parent c15e125 commit 7bd33f5

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/main/cljs/cljs/core.cljs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@
12071207
(when-not (nil? coll)
12081208
(cond
12091209
(implements? ISeqable coll)
1210-
(-seq ^not-native coll)
1210+
(-seq coll)
12111211

12121212
(array? coll)
12131213
(when-not (zero? (alength coll))
@@ -1228,7 +1228,7 @@
12281228
[coll]
12291229
(when-not (nil? coll)
12301230
(if (implements? ISeq coll)
1231-
(-first ^not-native coll)
1231+
(-first coll)
12321232
(let [s (seq coll)]
12331233
(when-not (nil? s)
12341234
(-first s))))))
@@ -1239,7 +1239,7 @@
12391239
[coll]
12401240
(if-not (nil? coll)
12411241
(if (implements? ISeq coll)
1242-
(-rest ^not-native coll)
1242+
(-rest coll)
12431243
(let [s (seq coll)]
12441244
(if s
12451245
(-rest ^not-native s)
@@ -1252,7 +1252,7 @@
12521252
[coll]
12531253
(when-not (nil? coll)
12541254
(if (implements? INext coll)
1255-
(-next ^not-native coll)
1255+
(-next coll)
12561256
(seq (rest coll)))))
12571257

12581258
(defn ^boolean =
@@ -1791,7 +1791,7 @@ reduces them without incurring seq initialization"
17911791
(when-not (nil? coll)
17921792
(cond
17931793
(implements? IEmptyableCollection coll)
1794-
(-empty ^not-native coll)
1794+
(-empty coll)
17951795

17961796
(satisfies? IEmptyableCollection coll)
17971797
(-empty coll)
@@ -1811,7 +1811,7 @@ reduces them without incurring seq initialization"
18111811
(if-not (nil? coll)
18121812
(cond
18131813
(implements? ICounted coll)
1814-
(-count ^not-native coll)
1814+
(-count coll)
18151815

18161816
(array? coll)
18171817
(alength coll)
@@ -1859,7 +1859,7 @@ reduces them without incurring seq initialization"
18591859
coll
18601860

18611861
(implements? IIndexed coll)
1862-
(-nth ^not-native coll n)
1862+
(-nth coll n)
18631863

18641864
(array? coll)
18651865
(if (and (>= n 0) (< n (.-length coll)))
@@ -1892,7 +1892,7 @@ reduces them without incurring seq initialization"
18921892
not-found
18931893

18941894
(implements? IIndexed coll)
1895-
(-nth ^not-native coll n not-found)
1895+
(-nth coll n not-found)
18961896

18971897
(array? coll)
18981898
(if (and (>= n 0) (< n (.-length coll)))
@@ -1931,7 +1931,7 @@ reduces them without incurring seq initialization"
19311931
(when-not (nil? o)
19321932
(cond
19331933
(implements? ILookup o)
1934-
(-lookup ^not-native o k)
1934+
(-lookup o k)
19351935

19361936
(array? o)
19371937
(when (and (some? k) (< k (.-length o)))
@@ -1949,7 +1949,7 @@ reduces them without incurring seq initialization"
19491949
(if-not (nil? o)
19501950
(cond
19511951
(implements? ILookup o)
1952-
(-lookup ^not-native o k not-found)
1952+
(-lookup o k not-found)
19531953

19541954
(array? o)
19551955
(if (and (some? k) (>= k 0) (< k (.-length o)))
@@ -2507,7 +2507,7 @@ reduces them without incurring seq initialization"
25072507
([f coll]
25082508
(cond
25092509
(implements? IReduce coll)
2510-
(-reduce ^not-native coll f)
2510+
(-reduce coll f)
25112511

25122512
(array? coll)
25132513
(array-reduce coll f)
@@ -2526,7 +2526,7 @@ reduces them without incurring seq initialization"
25262526
([f val coll]
25272527
(cond
25282528
(implements? IReduce coll)
2529-
(-reduce ^not-native coll f val)
2529+
(-reduce coll f val)
25302530

25312531
(array? coll)
25322532
(array-reduce coll f val)
@@ -3338,7 +3338,7 @@ reduces them without incurring seq initialization"
33383338
"Returns the namespace String of a symbol or keyword, or nil if not present."
33393339
[x]
33403340
(if (implements? INamed x)
3341-
(-namespace ^not-native x)
3341+
(-namespace x)
33423342
(throw (js/Error. (str "Doesn't support namespace: " x)))))
33433343

33443344
(defn ident?
@@ -9415,7 +9415,7 @@ reduces them without incurring seq initialization"
94159415
"Returns the name String of a string, symbol or keyword."
94169416
[x]
94179417
(if (implements? INamed x)
9418-
(-name ^not-native x)
9418+
(-name x)
94199419
(if (string? x)
94209420
x
94219421
(throw (js/Error. (str "Doesn't support name: " x))))))

0 commit comments

Comments
 (0)