Skip to content

Commit

Permalink
Remove an unused class var @@namespaces (#144)
Browse files Browse the repository at this point in the history
`@@namespaces` is defined under `REXML`, but it is never used.
At least, `rake test` passes when it is removed.

I guess the comment above `@@namespaces` is also false.
  • Loading branch information
makenowjust authored Jun 11, 2024
1 parent 0274467 commit 6415113
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/rexml/element.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
require_relative "parseexception"

module REXML
# An implementation note about namespaces:
# As we parse, when we find namespaces we put them in a hash and assign
# them a unique ID. We then convert the namespace prefix for the node
# to the unique ID. This makes namespace lookup much faster for the
# cost of extra memory use. We save the namespace prefix for the
# context node and convert it back when we write it.
@@namespaces = {}

# An \REXML::Element object represents an XML element.
#
# An element:
Expand Down

0 comments on commit 6415113

Please sign in to comment.