From f3e35474078895e1d178e15cfbfc6743f9ffc62d Mon Sep 17 00:00:00 2001 From: marcandre Date: Mon, 8 Nov 2010 20:59:01 +0000 Subject: * 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 --- lib/net/ftp.rb | 2 +- lib/net/http.rb | 2 +- lib/net/imap.rb | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/net') 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 -- cgit v1.2.3