Skip to content

Commit

Permalink
remove stale code
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 10, 2024
1 parent 204efec commit d571d7e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/packages/PkgCompat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -333,17 +333,6 @@ function _registry_entries(package_name::AbstractString, registries::Vector=_par
end
end

# (🐸 "Public API", but using PkgContext)
function _package_versions_from_path(registry_entry_fullpath::AbstractString)::Vector{VersionNumber}
# compat
vd = @static if hasmethod(Pkg.Operations.load_versions, (String,))
Pkg.Operations.load_versions(registry_entry_fullpath)
else
Pkg.Operations.load_versions(PkgContext(), registry_entry_fullpath)
end
vd |> keys |> collect
end

# ✅ "Public" API using RegistryInstances
"""
Return all registered versions of the given package. Returns `["stdlib"]` for standard libraries, a `Vector{VersionNumber}` for registered packages, or `["latest"]` if it crashed.
Expand Down

0 comments on commit d571d7e

Please sign in to comment.