Skip to content

Commit

Permalink
Remove unused GetPublicKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-lowman-dd committed Mar 27, 2022
1 parent f15b5aa commit 3daaeeb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1528,15 +1528,3 @@ func (r *Repo) timestampFileMeta(roleFilename string) (data.TimestampFileMeta, e
}
return util.GenerateTimestampFileMeta(bytes.NewReader(b), r.hashAlgorithms...)
}

func (r *Repo) GetPublicKeys(role string) ([]*data.PublicKey, error) {
signers, err := r.local.GetSigners(role)
if err != nil {
return nil, err
}
pubkeys := []*data.PublicKey{}
for _, signer := range signers {
pubkeys = append(pubkeys, signer.PublicData())
}
return pubkeys, nil
}

0 comments on commit 3daaeeb

Please sign in to comment.