Permalink
Browse files

[CS] Remove some unnecessary code

  • Loading branch information...
1 parent 2c91809 commit 4bef06ff5022d00635af3e77c25e2f0b9b45de78 @benlangfeld committed Mar 31, 2012
Showing with 2 additions and 6 deletions.
  1. +1 −5 lib/niceogiri/xml/node.rb
  2. +1 −1 niceogiri.gemspec
@@ -134,11 +134,7 @@ def set_content_for(node, content = nil)
def inherit(node)
set_namespace node.namespace if node.namespace
inherit_attrs node.attributes
- node.children.each do |c|
- self << (n = c.dup)
- ns = n.namespace_definitions.find { |ns| ns.prefix == c.namespace.prefix }
- n.namespace = ns if ns
- end
+ node.children.each { |c| self << c.dup }
self
end
View
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.rdoc_options = %w{--charset=UTF-8}
s.extra_rdoc_files = %w{LICENSE README.md}
- s.add_dependency "nokogiri", ["~> 1.4.6"]
+ s.add_dependency "nokogiri", ["~> 1.4.7"]
s.add_development_dependency "rspec", [">= 2.7.0"]
s.add_development_dependency "bundler", [">= 1.0.0"]

0 comments on commit 4bef06f

Please sign in to comment.