chore(pkger): drop deprecated shouldRemove from parser identity

pull/18539/head
Johnny Steenbergen 2020-06-15 13:14:24 -07:00 committed by Johnny Steenbergen
parent 72a415de51
commit 6ff46c0f3c
3 changed files with 3 additions and 16 deletions

View File

@ -348,9 +348,6 @@ func (p *Pkg) Summary() Summary {
}
for _, c := range p.checks() {
if c.shouldRemove {
continue
}
sum.Checks = append(sum.Checks, c.summarize())
}
@ -359,18 +356,12 @@ func (p *Pkg) Summary() Summary {
}
for _, l := range p.labels() {
if l.shouldRemove {
continue
}
sum.Labels = append(sum.Labels, l.summarize())
}
sum.LabelMappings = p.labelMappings()
for _, n := range p.notificationEndpoints() {
if n.shouldRemove {
continue
}
sum.NotificationEndpoints = append(sum.NotificationEndpoints, n.summarize())
}
@ -387,9 +378,6 @@ func (p *Pkg) Summary() Summary {
}
for _, v := range p.variables() {
if v.shouldRemove {
continue
}
sum.Variables = append(sum.Variables, v.summarize())
}

View File

@ -17,9 +17,8 @@ import (
)
type identity struct {
name *references
displayName *references
shouldRemove bool
name *references
displayName *references
}
func (i *identity) Name() string {

View File

@ -1131,7 +1131,7 @@ func (r *stateRule) diffRule() DiffNotificationRule {
sum := DiffNotificationRule{
DiffIdentifier: DiffIdentifier{
ID: SafeID(r.ID()),
Remove: r.parserRule.shouldRemove,
Remove: IsRemoval(r.stateStatus),
PkgName: r.parserRule.PkgName(),
},
New: DiffNotificationRuleValues{