summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 20:59:01 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 20:59:01 +0000
commitf3e35474078895e1d178e15cfbfc6743f9ffc62d (patch)
treea3fd49329f497133415a7ec11592b5c693459608 /lib/net
parentcceca83afe046b8c2b53eab6ab7c52faa1719b6d (diff)
* 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
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/ftp.rb2
-rw-r--r--lib/net/http.rb2
-rw-r--r--lib/net/imap.rb1
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index f393a15bff..4ed2517018 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -322,7 +322,7 @@ module Net
sock = TCPServer.open(@sock.addr[3], 0)
port = sock.addr[1]
host = sock.addr[3]
- resp = sendport(host, port)
+ sendport(host, port)
return sock
end
private :makeport
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 20c9bb7c92..33c88c8ce5 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1563,7 +1563,7 @@ module Net #:nodoc:
# or sub-type is not given (e.g. "Content-Type: text").
def sub_type
return nil unless @header['content-type']
- main, sub = *self['Content-Type'].split(';').first.to_s.split('/')
+ _, sub = *self['Content-Type'].split(';').first.to_s.split('/')
return nil unless sub
sub.strip
end
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 9de6395236..c3dda46606 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -2680,7 +2680,6 @@ module Net
token = match(T_ATOM)
name = token.value.upcase
match(T_SPACE)
- mailbox = astring
data = []
token = lookahead
if token.symbol == T_SPACE