mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-18 17:08:29 +00:00
Remove dead code (deploy test 4)
This commit is contained in:
parent
a3fb219ed8
commit
8fdc60cc52
@ -38,28 +38,6 @@ import (
|
|||||||
"strings"
|
"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 {
|
func DTOAdvisoryToPB(sc *Advisory) *apollopb.Advisory {
|
||||||
var errataType string
|
var errataType string
|
||||||
switch apollopb.Advisory_Type(sc.Type) {
|
switch apollopb.Advisory_Type(sc.Type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user