Skip to content

Commit 52cacd8

Browse files
committed
remove similarterm deprecation
1 parent d8f8d2d commit 52cacd8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/types.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,6 @@ end
632632

633633

634634
function to_symbolic(x)
635-
Base.depwarn("`to_symbolic(x)` is deprecated, define the interface for your " *
636-
"symbolic structure using `iscall(x)`, `operation(x)`, `arguments(x)` " *
637-
"and `similarterm(::YourType, f, args, symtype)`", :to_symbolic, force=true)
638-
639635
x
640636
end
641637

@@ -644,18 +640,11 @@ end
644640
645641
"""
646642
function similarterm(x, op, args, symtype=nothing; metadata=nothing)
647-
Base.depwarn("""`similarterm` is deprecated, use `maketerm` instead.
648-
See https://github.com/JuliaSymbolics/TermInterface.jl for details.
649-
The present call can be replaced by
650-
`maketerm(typeof(x), $(head(x)), [op, args...], symtype, metadata)`""", :similarterm)
651-
652643
TermInterface.maketerm(typeof(x), callhead(x), [op, args...], symtype, metadata)
653644
end
654645

655646
# Old fallback
656647
function similarterm(T::Type, op, args, symtype=nothing; metadata=nothing)
657-
Base.depwarn("`similarterm` is deprecated, use `maketerm` instead." *
658-
"See https://github.com/JuliaSymbolics/TermInterface.jl for details.", :similarterm)
659648
op(args...)
660649
end
661650

0 commit comments

Comments
 (0)