Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove treeviews #1018

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
TreeViews = "a2a6695c-b41b-5b7d-aed9-dbfdeacea5d7"

[weakdeps]
SymPy = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
Expand Down Expand Up @@ -74,7 +73,6 @@ Setfield = "0.7, 0.8, 1"
SpecialFunctions = "0.7, 0.8, 0.9, 0.10, 1.0, 2"
StaticArrays = "1.1"
SymbolicUtils = "1.4"
TreeViews = "0.3"
julia = "1.6"

[extras]
Expand Down
1 change: 0 additions & 1 deletion src/Symbolics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ include("arrays.jl")
export @register, @register_symbolic
include("register.jl")

using TreeViews
export @variables, Variable
include("variable.jl")

Expand Down
7 changes: 0 additions & 7 deletions src/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,6 @@ macro variables(xs...)
esc(_parse_vars(:variables, Real, xs))
end

TreeViews.hastreeview(x::Symbolic) = issym(x)

function TreeViews.treelabel(io::IO,x::Symbolic,
mime::MIME"text/plain" = MIME"text/plain"())
show(io,mime,Text(getname(x)))
end

const _fail = Dict()

_getname(x, _) = nameof(x)
Expand Down
Loading