Skip to content

Commit

Permalink
Remove unused validMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-lowman-dd committed Dec 14, 2021
1 parent 57f434e commit 372d80d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -696,15 +696,6 @@ func (r *Repo) SignedMeta(roleFilename string) (*data.Signed, error) {
return s, nil
}

func validMetadata(roleFilename string) bool {
for _, m := range topLevelMetadata {
if m == roleFilename {
return true
}
}
return false
}

func (r *Repo) AddTarget(path string, custom json.RawMessage) error {
return r.AddTargets([]string{path}, custom)
}
Expand Down

0 comments on commit 372d80d

Please sign in to comment.