File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ using MLStyle
3
3
using Random: AbstractRNG
4
4
using KeywordCalls
5
5
using ConstructionBase
6
- export @parameterized , @half , @affinepars
6
+ export @parameterized , @half
7
7
8
8
# A fold over ASTs. Example usage in `replace`
9
9
function foldast (leaf, branch; kwargs... )
@@ -130,21 +130,6 @@ macro parameterized(expr)
130
130
_parameterized (__module__, expr)
131
131
end
132
132
133
- macro affinepars (expr)
134
- _affinepars (__module__, expr)
135
- end
136
-
137
- function _affinepars (__module__, ex)
138
- ex = esc (ex)
139
- quote
140
- function Base. show (io:: IO , d:: Affine{N, <:$ex} ) where N
141
- nt1 = getfield (d. parent, :par )
142
- nt2 = getfield (getfield (d, :f ), :par )
143
- par = merge (nt1, nt2)
144
- print (io, $ ex, par)
145
- end
146
- end
147
- end
148
133
149
134
"""
150
135
@half dist([paramnames])
You can’t perform that action at this time.
0 commit comments