Skip to content

Commit

Permalink
Remove dead code in registry_resolve!() (#3418)
Browse files Browse the repository at this point in the history
As far as I can tell, these vectors are not used anywhere.
  • Loading branch information
staticfloat authored Mar 24, 2023
1 parent 8b23f5c commit 908f84e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,6 @@ registry_resolve!(registries::Vector{Registry.RegistryInstance}, pkg::PackageSpe
function registry_resolve!(registries::Vector{Registry.RegistryInstance}, pkgs::AbstractVector{PackageSpec})
# if there are no half-specified packages, return early
any(pkg -> has_name(pkg) has_uuid(pkg), pkgs) || return
# collect all names and uuids since we're looking anyway
names = [pkg.name::String for pkg in pkgs if has_name(pkg)]
uuids = [pkg.uuid::UUID for pkg in pkgs if has_uuid(pkg)]
for pkg in pkgs
@assert has_name(pkg) || has_uuid(pkg)
if has_name(pkg) && !has_uuid(pkg)
Expand Down

0 comments on commit 908f84e

Please sign in to comment.