From 8fdc60cc521ec2c7abaaffa5561d4aab9a34109e Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Tue, 1 Nov 2022 04:27:24 +0100 Subject: [PATCH] Remove dead code (deploy test 4) --- apollo/db/convert.go | 22 ---------------------- 1 file changed, 22 deletions(-) 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) {