summaryrefslogtreecommitdiff
path: root/lib/drb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 16:59:10 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 16:59:10 +0000
commit70510d026f8d86693dccaba07417488eed09b41d (patch)
tree81670e1c01692ae397e7f1f2e4caf646cef34d3c /lib/drb
parentc6820cc3bea5476f605a51e38c1207d266f45ff6 (diff)
* lib/csv.rb: Fix unused variable warnings.
Patch by Run Paint [ruby-core:30991] * lib/date.rb: ditto * lib/debug.rb: ditto * lib/drb/drb.rb: ditto * lib/drb/invokemethod.rb: ditto * lib/irb/ruby-lex.rb: ditto * lib/irb/slex.rb: ditto * lib/logger.rb: ditto * lib/pathname.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb')
-rw-r--r--lib/drb/drb.rb4
-rw-r--r--lib/drb/invokemethod.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index 84a21440ed6..cacca145e9f 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -820,7 +820,7 @@ module DRb
# Open a client connection to +uri+ using configuration +config+.
def self.open(uri, config)
- host, port, option = parse_uri(uri)
+ host, port, = parse_uri(uri)
host.untaint
port.untaint
soc = TCPSocket.open(host, port)
@@ -852,7 +852,7 @@ module DRb
# configuration +config+.
def self.open_server(uri, config)
uri = 'druby://:0' unless uri
- host, port, opt = parse_uri(uri)
+ host, port, _ = parse_uri(uri)
config = {:tcp_original_host => host}.update(config)
if host.size == 0
host = getservername
diff --git a/lib/drb/invokemethod.rb b/lib/drb/invokemethod.rb
index 220d0ad68dc..5a231ed67b3 100644
--- a/lib/drb/invokemethod.rb
+++ b/lib/drb/invokemethod.rb
@@ -7,7 +7,7 @@ module DRb
if x.size == 1 && x[0].class == Array
x[0] = DRbArray.new(x[0])
end
- block_value = @block.call(*x)
+ @block.call(*x)
end
def perform_with_block