Skip to content

Commit

Permalink
Get rid of Compat.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fu committed Sep 11, 2024
1 parent d510630 commit 7b26fcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ version = "1.25.1"
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
DiffResults = "163ba53b-c6d8-5494-b064-1a9d43ac40c5"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
ExtendableGrids = "cfc395e8-590f-11e8-1f13-43a2532b2fa8"
Expand All @@ -33,7 +32,6 @@ Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
BandedMatrices = "0.17,1"
Colors = "0.12"
CommonSolve = "0.2"
Compat = "4.10"
DiffResults = "1"
DocStringExtensions = "0.8,0.9"
ExtendableGrids = "1.9.2"
Expand Down
13 changes: 8 additions & 5 deletions src/VoronoiFVM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ using SparseDiffTools: SparseDiffTools, forwarddiff_color_jacobian!,
using StaticArrays: StaticArrays, @MVector, @SArray, @SMatrix
using Statistics: Statistics, mean
using Symbolics: Symbolics
using Compat: @compat



"""
Expand All @@ -66,11 +64,17 @@ Abstract type for geometry items (node,bnode,edge, bedge)
abstract type AbstractGeometryItem{Tc <: Number, Tp <: Number, Ti <: Integer} end
export AbstractGeometryItem

"""
$(TYPEDEF)
Abstract type for stationary solution
"""
abstract type AbstractSolutionArray{T,N} <: AbstractArray{T,N} end
export AbstractSolutionArray

include("vfvm_physics.jl")
@compat public Physics
# see https://discourse.julialang.org/t/is-compat-jl-worth-it-for-the-public-keyword/119041/34
VERSION >= v"1.11.0-DEV.469" && eval(Meta.parse("public Physics"))

include("vfvm_functions.jl")
export fbernoulli
Expand Down Expand Up @@ -123,8 +127,7 @@ export edgelength
export viewK, viewL, data
export hasoutflownode, isoutflownode, outflownode


@compat public System, AbstractSystem, SystemState
VERSION >= v"1.11.0-DEV.469" && eval(Meta.parse("public System, AbstractSystem, SystemState"))

# export to be deprecated
export partitioning, Equationwise
Expand Down

0 comments on commit 7b26fcb

Please sign in to comment.