Skip to content

Commit e87baec

Browse files
Remove Julia v1.9 get_extension compatibility code (#188)
* 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. * Update PlotsExt.jl * Update src/RootedTrees.jl * Update Project.toml
1 parent c84cbc9 commit e87baec

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
1111
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
12-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1312

1413
[weakdeps]
1514
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
@@ -24,8 +23,7 @@ LinearAlgebra = "1"
2423
Plots = "1"
2524
Preferences = "1.3"
2625
RecipesBase = "1"
27-
Requires = "1"
28-
julia = "1.6"
26+
julia = "1.10"
2927

3028
[extras]
3129
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"

ext/PlotsExt.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
module PlotsExt
22

3-
if isdefined(Base, :get_extension)
4-
using Plots: Plots
5-
else
6-
import ..Plots: Plots
7-
end
3+
using Plots: Plots
84

95
using RootedTrees: RootedTrees
106

src/RootedTrees.jl

Lines changed: 0 additions & 11 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,15 +1600,8 @@ 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-
16131603
return nothing
16141604
end
1615-
16161605
# explicit precompilation
16171606
include("precompile.jl")
16181607

0 commit comments

Comments
 (0)