Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 1 addition & 5 deletions ext/PlotsExt.jl
Original file line number Diff line number Diff line change
@@ -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

Expand Down
15 changes: 1 addition & 14 deletions src/RootedTrees.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -1604,16 +1600,7 @@ 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 on Julia v1.8 and newer
@static # explicit precompilation on Julia v1.8 and newer
@static if VERSION >= v"1.8"
include("precompile.jl")
end
Expand Down
Loading