Skip to content

Commit 564f274

Browse files
Remove Julia v1.9 get_extension compatibility code
Since all SciML packages now require Julia v1.10+, we can remove the compatibility checks for `isdefined(Base, :get_extension)` as package extensions are available in all supported Julia versions. This removes unnecessary version checks in extension loading code.
1 parent f0c82e9 commit 564f274

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

ext/PlotsExt.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module PlotsExt
22

3-
if isdefined(Base, :get_extension)
43
using Plots: Plots
54
else
65
import ..Plots: Plots

src/RootedTrees.jl

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ using Latexify: Latexify
1010
using Preferences: @set_preferences!, @load_preference
1111
using RecipesBase: RecipesBase
1212

13-
if !isdefined(Base, :get_extension)
14-
using Requires: @require
15-
end
16-
1713
export RootedTree, rootedtree, rootedtree!, RootedTreeIterator,
1814
ColoredRootedTree, BicoloredRootedTree, BicoloredRootedTreeIterator
1915

@@ -1604,16 +1600,7 @@ function __init__()
16041600
Threads.resize_nthreads!(PARTITION_ITERATOR_BUFFER_EDGE_SET_TMP,
16051601
Vector{Bool}(undef, BUFFER_LENGTH))
16061602

1607-
@static if !isdefined(Base, :get_extension)
1608-
@require Plots="91a5bcdd-55d7-5caf-9e0b-520d859cae80" begin
1609-
include("../ext/PlotsExt.jl")
1610-
end
1611-
end
1612-
1613-
return nothing
1614-
end
1615-
1616-
# explicit precompilation on Julia v1.8 and newer
1603+
@static # explicit precompilation on Julia v1.8 and newer
16171604
@static if VERSION >= v"1.8"
16181605
include("precompile.jl")
16191606
end

0 commit comments

Comments
 (0)