mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
Delete EquivalentBug function
This commit is contained in:
parent
8a4e4a1290
commit
98a1d831f0
19
bug/bug.go
19
bug/bug.go
@ -749,22 +749,3 @@ func (bug *Bug) Compile() Snapshot {
|
||||
|
||||
return snap
|
||||
}
|
||||
|
||||
// EquivalentBug returns true if two bugs are equal
|
||||
func EquivalentBug(expected, actual *Bug) bool {
|
||||
if len(expected.packs) != len(actual.packs) {
|
||||
return false
|
||||
}
|
||||
|
||||
for i := range expected.packs {
|
||||
for j := range expected.packs[i].Operations {
|
||||
actual.packs[i].Operations[j].base().id = expected.packs[i].Operations[j].base().id
|
||||
}
|
||||
}
|
||||
|
||||
if expected != actual {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user