diff --git a/Project.toml b/Project.toml index 937c7e0f..bf55649d 100644 --- a/Project.toml +++ b/Project.toml @@ -9,7 +9,6 @@ Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Preferences = "21216c6a-2e73-6563-6e65-726566657250" RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" -Requires = "ae029012-a4dd-5104-9daa-d747884805df" [weakdeps] Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" @@ -24,8 +23,7 @@ LinearAlgebra = "1" Plots = "1" Preferences = "1.3" RecipesBase = "1" -Requires = "1" -julia = "1.6" +julia = "1.10" [extras] Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" diff --git a/ext/PlotsExt.jl b/ext/PlotsExt.jl index daa80695..7391378d 100644 --- a/ext/PlotsExt.jl +++ b/ext/PlotsExt.jl @@ -1,10 +1,6 @@ module PlotsExt -if isdefined(Base, :get_extension) - using Plots: Plots -else - import ..Plots: Plots -end +using Plots: Plots using RootedTrees: RootedTrees diff --git a/src/RootedTrees.jl b/src/RootedTrees.jl index 61738d65..6a05de1a 100644 --- a/src/RootedTrees.jl +++ b/src/RootedTrees.jl @@ -10,10 +10,6 @@ using Latexify: Latexify using Preferences: @set_preferences!, @load_preference using RecipesBase: RecipesBase -if !isdefined(Base, :get_extension) - using Requires: @require -end - export RootedTree, rootedtree, rootedtree!, RootedTreeIterator, ColoredRootedTree, BicoloredRootedTree, BicoloredRootedTreeIterator @@ -1604,15 +1600,8 @@ function __init__() Threads.resize_nthreads!(PARTITION_ITERATOR_BUFFER_EDGE_SET_TMP, Vector{Bool}(undef, BUFFER_LENGTH)) - @static if !isdefined(Base, :get_extension) - @require Plots="91a5bcdd-55d7-5caf-9e0b-520d859cae80" begin - include("../ext/PlotsExt.jl") - end - end - return nothing end - # explicit precompilation include("precompile.jl")