mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/*.rb: Remove unused variable warnings.
Patch by Run Paint [ruby-core:30991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cceca83afe
commit
f3e3547407
37 changed files with 62 additions and 73 deletions
|
@ -874,7 +874,6 @@ module REXML
|
|||
# a.elements.add(Element.new('b')) #-> <a><b/></a>
|
||||
# a.elements.add('c') #-> <a><b/><c/></a>
|
||||
def add element=nil
|
||||
rv = nil
|
||||
if element.nil?
|
||||
Element.new("", self, @element.context)
|
||||
elsif not element.kind_of?(Element)
|
||||
|
@ -1092,7 +1091,7 @@ module REXML
|
|||
delete attr
|
||||
return
|
||||
end
|
||||
element_document = @element.document
|
||||
|
||||
unless value.kind_of? Attribute
|
||||
if @element.document and @element.document.doctype
|
||||
value = Text::normalize( value, @element.document.doctype )
|
||||
|
@ -1197,7 +1196,7 @@ module REXML
|
|||
return @element
|
||||
else # the supplied attribute is a top-level one
|
||||
attr = old
|
||||
res = super(name)
|
||||
super(name)
|
||||
end
|
||||
@element
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue