deprecate
This commit is contained in:
parent
94d95442ab
commit
4516978caa
@ -1,5 +1,14 @@
|
||||
import Base: @deprecate
|
||||
|
||||
|
||||
#### remove in v 0.11 #####
|
||||
@deprecate param(x) x
|
||||
@deprecate data(x) x
|
||||
|
||||
@deprecate mapleaves(f, x) fmap(f, x)
|
||||
|
||||
macro treelike(args...)
|
||||
functorm(args...)
|
||||
end
|
||||
#############################
|
||||
|
||||
|
@ -163,14 +163,6 @@ function params(x...)
|
||||
return ps
|
||||
end
|
||||
|
||||
# Deprecated stuff
|
||||
macro treelike(args...)
|
||||
functorm(args...)
|
||||
end
|
||||
|
||||
|
||||
mapleaves(f, x) = fmap(f, x)
|
||||
|
||||
function loadparams!(m, xs)
|
||||
for (p, x) in zip(params(m), xs)
|
||||
size(p) == size(x) ||
|
||||
|
Loading…
Reference in New Issue
Block a user