Skip to content

Commit

Permalink
rm attrs-present-evaluated?
Browse files Browse the repository at this point in the history
  • Loading branch information
onionpancakes committed Feb 19, 2024
1 parent 26818d9 commit 52790e6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/dev/onionpancakes/chassis/compiler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@
(and (>= (count elem) 2)
(attrs? (nth elem 1))))

(defn attrs-present-evaluated?
[elem]
(evaluated? (nth elem 1)))

(defn attrs-absent?
[[_ x :as elem]]
(or (<= (count elem) 1)
Expand Down Expand Up @@ -302,7 +298,7 @@
(defn compilable-alias-element-children
[elem]
(if (attrs-present? elem)
(if (attrs-present-evaluated? elem)
(if (evaluated? (nth elem 1))
(compilable-alias-element-children-attrs-present-evaluated elem)
(compilable-alias-element-children-attrs-present elem))
(if (attrs-absent? elem)
Expand Down Expand Up @@ -381,7 +377,7 @@
(defn compilable-element-children
[elem]
(if (attrs-present? elem)
(if (attrs-present-evaluated? elem)
(if (evaluated? (nth elem 1))
(compilable-element-children-attrs-present-evaluated elem)
(compilable-element-children-attrs-present elem))
(if (attrs-absent? elem)
Expand Down

0 comments on commit 52790e6

Please sign in to comment.