From 656abe3920d397157db8d78d9884ecf65ae6b3e4 Mon Sep 17 00:00:00 2001 From: xibbar Date: Thu, 11 Apr 2013 14:27:44 +0000 Subject: [PATCH] * lib/cgi/html.rb: remove 'super {yield}' which is for old version. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi/html.rb | 36 ++++++------------------------------ 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index 44d9f25152..4c4f698a2b 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -99,11 +99,7 @@ class CGI else href end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end # Generate a Document Base URI element as a String. @@ -121,11 +117,7 @@ class CGI else href end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end # Generate a BlockQuote element as a string. @@ -144,11 +136,7 @@ class CGI else cite end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end @@ -168,11 +156,7 @@ class CGI else align end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end @@ -435,11 +419,7 @@ class CGI buf << doctype end - if block_given? - buf << super(attributes){ yield } - else - buf << super(attributes) - end + buf << super(attributes) if pretty CGI::pretty(buf, pretty) @@ -831,11 +811,7 @@ class CGI else name end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end end # HtmlExtension