Remove commented out code

We can always recover it from git, but it seems to serve
no purpose anyway.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2022-08-24 19:57:43 +02:00
parent d520a5ccab
commit 49ac7ee55e

View File

@ -142,16 +142,12 @@ func getPolicyShowOutput(policyContentStruct trust.PolicyContent, systemRegistri
Transport: transport, Transport: transport,
Type: trustTypeDescription(repoval[0].Type), Type: trustTypeDescription(repoval[0].Type),
} }
// TODO - keyarr is not used and I don't know its intent; commenting out for now for someone to fix later
// keyarr := []string{}
uids := []string{} uids := []string{}
for _, repoele := range repoval { for _, repoele := range repoval {
if len(repoele.KeyPath) > 0 { if len(repoele.KeyPath) > 0 {
// keyarr = append(keyarr, repoele.KeyPath)
uids = append(uids, trust.GetGPGIdFromKeyPath(repoele.KeyPath)...) uids = append(uids, trust.GetGPGIdFromKeyPath(repoele.KeyPath)...)
} }
if len(repoele.KeyData) > 0 { if len(repoele.KeyData) > 0 {
// keyarr = append(keyarr, string(repoele.KeyData))
uids = append(uids, trust.GetGPGIdFromKeyData(repoele.KeyData)...) uids = append(uids, trust.GetGPGIdFromKeyData(repoele.KeyData)...)
} }
} }