Skip to content

Commit

Permalink
Delete unneeded codes from types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMen65 committed Jan 24, 2021
1 parent fbc3d64 commit 7e9899a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions data/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,6 @@ func (t *Targets) TargetAddKey(key *Key) bool {
return changed
}

//DelegationAddKey check existence of a key,
//Add it to Delegation's key filed if not exist
/*
func (d *Delegation) DelegationAddKey(key *Key) bool {
changed := false
for _, id := range key.IDs() {
if _, ok := d.Keys[id]; !ok {
changed = true
d.Keys[id] = key
}
}
return changed
}
*/

// UniqueKeys returns the unique keys for each associated role.
// We might have multiple key IDs that correspond to the same key.
func (r Root) UniqueKeys() map[string][]*Key {
Expand Down

0 comments on commit 7e9899a

Please sign in to comment.