Skip to content

Commit 959e98a

Browse files
committed
Eliminate XPathNode
XPathNode requires :position, but in most case, this :position is not used at all, and just doing useless packing/unpacking.
1 parent a98066c commit 959e98a

2 files changed

Lines changed: 94 additions & 189 deletions

File tree

lib/rexml/functions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def Functions::last( )
5353
end
5454

5555
def Functions::position( )
56-
@@context[:index]
56+
@@context[:position]
5757
end
5858

5959
# Returns the size of the given list of nodes.

0 commit comments

Comments
 (0)