Permalink
Browse files

code cleanup by @vipulnsward [GH fixes #267]

 * lib/cgi/core.rb: change each to each_value
 * ext/bigdecimal/lib/bigdecimal/{jacobian,math}.rb:
   remove unused variables from bigdecimal lib



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 1950c1c commit 0cfc4866d4eb7f16e650ab3262515c02fc6725ab @hsbt hsbt committed Mar 29, 2013
Showing with 1 addition and 4 deletions.
  1. +0 −1 ext/bigdecimal/lib/bigdecimal/jacobian.rb
  2. +0 −2 ext/bigdecimal/lib/bigdecimal/math.rb
  3. +1 −1 lib/cgi/core.rb
@@ -51,7 +51,6 @@ def dfdxi(f,fx,x,i)
dx = fx[i].abs/ratio if isEqual(dx,f.zero,f.zero,f.eps)
dx = f.one/f.ten if isEqual(dx,f.zero,f.zero,f.eps)
until ok>0 do
- s = f.zero
deriv = []
nRetry += 1
if nRetry > 100
@@ -159,7 +159,6 @@ def PI(prec)
d = one
k = one
- w = one
t = BigDecimal("-80")
while d.nonzero? && ((m = n - (pi.exponent - d.exponent).abs) > 0)
m = BigDecimal.double_fig if m < BigDecimal.double_fig
@@ -171,7 +170,6 @@ def PI(prec)
d = one
k = one
- w = one
t = BigDecimal("956")
while d.nonzero? && ((m = n - (pi.exponent - d.exponent).abs) > 0)
m = BigDecimal.double_fig if m < BigDecimal.double_fig
View
@@ -238,7 +238,7 @@ def _header_for_hash(options) #:nodoc:
arr.each {|c| buf << "Set-Cookie: #{c}#{EOL}" }
when Hash
hash = cookie
- hash.each {|name, c| buf << "Set-Cookie: #{c}#{EOL}" }
+ hash.each_value {|c| buf << "Set-Cookie: #{c}#{EOL}" }
end
end
if @output_cookies

0 comments on commit 0cfc486

Please sign in to comment.