mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 19:52:36 +00:00
Merge pull request #2795 from rgv151/patch-1
Remove dead code in findAll proc
This commit is contained in:
@@ -337,8 +337,7 @@ proc findAll*(n: XmlNode, tag: string, result: var seq[XmlNode]) =
|
||||
continue
|
||||
if child.tag == tag:
|
||||
result.add(child)
|
||||
elif child.k == xnElement:
|
||||
child.findAll(tag, result)
|
||||
child.findAll(tag, result)
|
||||
|
||||
proc findAll*(n: XmlNode, tag: string): seq[XmlNode] =
|
||||
## Shortcut version to assign in let blocks. Example:
|
||||
|
||||
Reference in New Issue
Block a user