remove unused artefact

This commit is contained in:
jangko 2020-05-24 11:40:01 +07:00
parent bd4069d5ca
commit e130cab959
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ func groups*(m: MultikeysRef, parentGroup: Group, depth: int): BranchGroup =
result.groups[nibble.int] = g
func groups*(m: MultikeysRef, depth: int, n: NibblesSeq, parentGroup: Group): MatchGroup =
# using common-prefix comparison, this iterator
# using common-prefix comparison, this func
# will produce one match group or no match at all
var g = Group(first: parentGroup.first)
@ -147,7 +147,7 @@ func groups*(m: MultikeysRef, depth: int, n: NibblesSeq, parentGroup: Group): Ma
func isValidMatch(mg: MatchGroup): bool {.inline.} =
result = mg.match and mg.group.first == mg.group.last
proc visitMatch*(m: var MultikeysRef, mg: MatchGroup, depth: int, k: NibblesSeq): KeyData =
proc visitMatch*(m: var MultikeysRef, mg: MatchGroup, depth: int): KeyData =
doAssert(mg.isValidMatch)
m.keys[mg.group.first].visited = true
result = m.keys[mg.group.first]

View File

@ -262,7 +262,7 @@ proc getBranchRecurse(wb: var WitnessBuilder, z: var StackElem) =
return
# there should be only one match
let kd = z.keys.visitMatch(mg, z.depth, k)
let kd = z.keys.visitMatch(mg, z.depth)
if z.storageMode:
doAssert(kd.storageMode)
writeAccountStorageLeafNode(wb, kd.storageSlot, value.toBytes.decode(UInt256), z.node, z.depth)