Remove dead code (deploy test 4)

This commit is contained in:
Mustafa Gezen 2022-11-01 04:27:24 +01:00
parent a3fb219ed8
commit 8fdc60cc52
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1

View File

@ -38,28 +38,6 @@ import (
"strings"
)
func DTOShortCodeToPB(sc *ShortCode) *apollopb.ShortCode {
ret := &apollopb.ShortCode{
Code: sc.Code,
}
if sc.ArchivedAt.Valid {
ret.Archived = true
}
return ret
}
func DTOListShortCodesToPB(scs []*ShortCode) []*apollopb.ShortCode {
var ret []*apollopb.ShortCode
for _, v := range scs {
ret = append(ret, DTOShortCodeToPB(v))
}
return ret
}
func DTOAdvisoryToPB(sc *Advisory) *apollopb.Advisory {
var errataType string
switch apollopb.Advisory_Type(sc.Type) {