diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 20:47:11 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 20:47:11 +0000 |
commit | 3cec00c39ca6278d03e365ba8fd6d4768bce9092 (patch) | |
tree | 1923bc394ded8cd78a288907b88f4696a2900de3 /lib | |
parent | 9b86c33e2e65d1f821beb85201f457353bca3409 (diff) | |
download | ruby-3cec00c39ca6278d03e365ba8fd6d4768bce9092.tar.gz ruby-3cec00c39ca6278d03e365ba8fd6d4768bce9092.tar.xz ruby-3cec00c39ca6278d03e365ba8fd6d4768bce9092.zip |
Fix uninitialized variable warning in Net::HTTP
Remove unused method in IRB::OutputMethod.
[ruby-talk:284582]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/output-method.rb | 15 | ||||
-rw-r--r-- | lib/net/http.rb | 1 |
2 files changed, 1 insertions, 15 deletions
diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb index 3e4e3d442..b8bd7fab8 100644 --- a/lib/irb/output-method.rb +++ b/lib/irb/output-method.rb @@ -45,21 +45,6 @@ module IRB return format, opts if $1.size % 2 == 1 end - def foo(format) - pos = 0 - inspects = [] - format.scan(/%[#0\-+ ]?(\*(?=[^0-9])|\*[1-9][0-9]*\$|[1-9][0-9]*(?=[^0-9]))?(\.(\*(?=[^0-9])|\*[1-9][0-9]*\$|[1-9][0-9]*(?=[^0-9])))?(([1-9][0-9]*\$)*)([diouxXeEfgGcsb%])/) {|f, p, pp, pos, new_pos, c| - puts [f, p, pp, pos, new_pos, c].join("!") - pos = new_pos if new_pos - if c == "I" - inspects.push pos.to_i - (f||"")+(p||"")+(pp||"")+(pos||"")+"s" - else - $& - end - } - end - def puts(*objs) for obj in objs print(*obj) diff --git a/lib/net/http.rb b/lib/net/http.rb index b9fadd2fe..06b176b3c 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -485,6 +485,7 @@ module Net #:nodoc: @ssl_context = nil @enable_post_connection_check = true @compression = nil + @sspi_enabled = false end def inspect |