Skip to content

Commit

Permalink
Remove HDF5.exists deprecation
Browse files Browse the repository at this point in the history
This was removed in v0.16 of HDF5 and since the present version of JLD specifies this as minimum compatible HDF5 version, it is safe to remove the warning.
  • Loading branch information
musm authored Jul 12, 2023
1 parent b9b69c5 commit e017953
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/JLD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1410,13 +1410,6 @@ include("JLD00.jl")
### v0.12.0 deprecations
###

import HDF5: exists
export exists
@noinline function exists(p::Union{JldFile, JldGroup, JldDataset}, path::String)
Base.depwarn("`exists(p, path)` is deprecated, use `haskey(p, path)` instead.", :exists)
return haskey(p, path)
end

@noinline function Base.names(parent::Union{JldFile, JldGroup})
Base.depwarn("`names(parent)` is deprecated, use `keys(parent)` instead.", :names)
return keys(parent)
Expand Down

0 comments on commit e017953

Please sign in to comment.