diff options
author | vince <vincetiu8@gmail.com> | 2020-08-27 20:09:55 +0800 |
---|---|---|
committer | vince <vincetiu8@gmail.com> | 2020-08-27 20:11:24 +0800 |
commit | 98a1d831f0672f118ccded5411027e4aad4cae94 (patch) | |
tree | 42f4be835e56149998d57056bd548f56904ff938 /bug | |
parent | 8a4e4a1290bc49ea9ac196f96ff5140ddb871eba (diff) | |
download | git-bug-98a1d831f0672f118ccded5411027e4aad4cae94.tar.gz |
Delete EquivalentBug function
Diffstat (limited to 'bug')
-rw-r--r-- | bug/bug.go | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -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 -} |