Skip to content

Remove Julia v1.9 get_extension compatibility code #188

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

Merged
merged 6 commits into from
Jul 29, 2025
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