diff --git a/apollo/db/convert.go b/apollo/db/convert.go index 5bc9d62f..fe204d4b 100644 --- a/apollo/db/convert.go +++ b/apollo/db/convert.go @@ -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) {