Skip to content

Commit 7a4e70f

Browse files
author
dnolen
committed
specs are not ifns
same as Clojure 6244247fc
1 parent b81bfb8 commit 7a4e70f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/main/cljs/cljs/spec.cljs

-16
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,6 @@
387387
keys->specs #(c/or (k->s %) %)
388388
id (random-uuid)]
389389
(reify
390-
IFn
391-
(-invoke [this x] (valid? this x))
392390
Spec
393391
(conform* [_ m]
394392
(if (keys-pred m)
@@ -471,8 +469,6 @@
471469
(named? pred) (cond-> (the-spec pred) gfn (with-gen gfn))
472470
:else
473471
(reify
474-
IFn
475-
(-invoke [this x] (valid? this x))
476472
Spec
477473
(conform* [_ x] (dt pred x form cpred?))
478474
(unform* [_ x] (if cpred?
@@ -503,8 +499,6 @@
503499
#(assoc %1 retag %2)
504500
retag)]
505501
(reify
506-
IFn
507-
(-invoke [this x] (valid? this x))
508502
Spec
509503
(conform* [_ x] (if-let [pred (predx x)]
510504
(dt pred x form)
@@ -543,8 +537,6 @@
543537
([forms preds] (tuple-impl forms preds nil))
544538
([forms preds gfn]
545539
(reify
546-
IFn
547-
(-invoke [this x] (valid? this x))
548540
Spec
549541
(conform* [_ x]
550542
(if-not (c/and (vector? x)
@@ -616,8 +608,6 @@
616608
(tagged-ret [(keys i) ret]))))
617609
::invalid)))]
618610
(reify
619-
IFn
620-
(-invoke [this x] (valid? this x))
621611
Spec
622612
(conform* [_ x] (cform x))
623613
(unform* [_ [k x]] (unform (kps k) x))
@@ -669,8 +659,6 @@
669659
"Do not call this directly, use 'and'"
670660
[forms preds gfn]
671661
(reify
672-
IFn
673-
(-invoke [this x] (valid? this x))
674662
Spec
675663
(conform* [_ x] (and-preds x preds forms))
676664
(unform* [_ x] (reduce #(unform %2 %1) x (reverse preds)))
@@ -999,8 +987,6 @@
999987
"Do not call this directly, use 'spec' with a regex op argument"
1000988
[re gfn]
1001989
(reify
1002-
IFn
1003-
(-invoke [this x] (valid? this x))
1004990
Spec
1005991
(conform* [_ x]
1006992
(if (c/or (nil? x) (coll? x))
@@ -1046,8 +1032,6 @@
10461032
[argspec aform retspec rform fnspec fform gfn]
10471033
(let [specs {:args argspec :ret retspec :fn fnspec}]
10481034
(reify
1049-
IFn
1050-
(-invoke [this x] (valid? this x))
10511035
ILookup
10521036
(-lookup [this k] (get specs k))
10531037
(-lookup [_ k not-found] (get specs k not-found))

0 commit comments

Comments
 (0)