Skip to content

Commit

Permalink
Dead code? (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese authored Jan 2, 2024
1 parent 46f4bc0 commit ecd256c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions internal/cli/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,6 @@ func runAdd(
if guess {
guessed := store.GuessWithCache(ctx, b, forceGuess)

// Map from normalized package names to original
// names.
guessedNorm := map[api.PkgName]api.PkgName{}
for name := range guessed {
guessedNorm[b.NormalizePackageName(name)] = name
}

for _, pkg := range ignoredPackages {
delete(guessedNorm, b.NormalizePackageName(api.PkgName(pkg)))
}

for name := range guessed {
if _, ok := normPkgs[b.NormalizePackageName(name)]; !ok {
normPkgs[b.NormalizePackageName(name)] = pkgNameAndSpec{
Expand Down

0 comments on commit ecd256c

Please sign in to comment.