From e068304c888b6d766fce7db0283085a647db86c3 Mon Sep 17 00:00:00 2001 From: Sathvik Bhagavan Date: Mon, 4 Dec 2023 18:18:52 +0000 Subject: [PATCH] chore: remove treeviews --- Project.toml | 2 -- src/Symbolics.jl | 1 - src/variable.jl | 7 ------- 3 files changed, 10 deletions(-) diff --git a/Project.toml b/Project.toml index dd3bfd159..0b0676420 100644 --- a/Project.toml +++ b/Project.toml @@ -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" @@ -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] diff --git a/src/Symbolics.jl b/src/Symbolics.jl index f9565f4dc..888b52206 100644 --- a/src/Symbolics.jl +++ b/src/Symbolics.jl @@ -84,7 +84,6 @@ include("arrays.jl") export @register, @register_symbolic include("register.jl") -using TreeViews export @variables, Variable include("variable.jl") diff --git a/src/variable.jl b/src/variable.jl index 19f101503..517794542 100644 --- a/src/variable.jl +++ b/src/variable.jl @@ -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)