mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Clean warnings: unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d514cd3ca0
commit
0de2d84af8
9 changed files with 12 additions and 17 deletions
|
|
@ -246,7 +246,7 @@ module SingleForwardable
|
|||
# provided, it is used as the name for the delegate method.
|
||||
#
|
||||
def def_single_delegator(accessor, method, ali = method)
|
||||
line_no = __LINE__; str = %{
|
||||
str = %{
|
||||
def #{ali}(*args, &block)
|
||||
begin
|
||||
#{accessor}.__send__(:#{method}, *args, &block)
|
||||
|
|
@ -264,7 +264,3 @@ module SingleForwardable
|
|||
alias def_delegators def_single_delegators
|
||||
alias def_delegator def_single_delegator
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue