diff options
author | Miloslav Trmač <mitr@redhat.com> | 2022-08-24 19:57:43 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2022-08-29 17:55:37 +0200 |
commit | 4e998c917c6c0a0873d2eed23fe38106e37bd482 (patch) | |
tree | ca838e87717352edace86ad8b05c132e5ddc769c | |
parent | 754ec89a8a185d308ca5ed08afaf34d6cbda08da (diff) | |
download | podman-4e998c917c6c0a0873d2eed23fe38106e37bd482.tar.gz podman-4e998c917c6c0a0873d2eed23fe38106e37bd482.tar.bz2 podman-4e998c917c6c0a0873d2eed23fe38106e37bd482.zip |
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>
-rw-r--r-- | pkg/domain/infra/abi/trust.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/domain/infra/abi/trust.go b/pkg/domain/infra/abi/trust.go index 0e3d8fad9..cefe76da7 100644 --- a/pkg/domain/infra/abi/trust.go +++ b/pkg/domain/infra/abi/trust.go @@ -142,16 +142,12 @@ func getPolicyShowOutput(policyContentStruct trust.PolicyContent, systemRegistri Transport: transport, 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{} for _, repoele := range repoval { if len(repoele.KeyPath) > 0 { - // keyarr = append(keyarr, repoele.KeyPath) uids = append(uids, trust.GetGPGIdFromKeyPath(repoele.KeyPath)...) } if len(repoele.KeyData) > 0 { - // keyarr = append(keyarr, string(repoele.KeyData)) uids = append(uids, trust.GetGPGIdFromKeyData(repoele.KeyData)...) } } |