ruby-changes:18099
From: nobu <ko1@a...>
Date: Tue, 7 Dec 2010 22:37:19 +0900 (JST)
Subject: [ruby-changes:18099] Ruby:r30120 (trunk): * lib/optparse.rb (OptionParser::Completion#candidate),
nobu 2010-12-07 22:29:49 +0900 (Tue, 07 Dec 2010) New Revision: 30120 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30120 Log: * lib/optparse.rb (OptionParser::Completion#candidate), (OptionParser::Switch#compsys): remove unused variables. Modified files: trunk/ChangeLog trunk/lib/optparse.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30119) +++ ChangeLog (revision 30120) @@ -1,3 +1,8 @@ +Tue Dec 7 22:29:45 2010 Nobuyoshi Nakada <nobu@r...> + + * lib/optparse.rb (OptionParser::Completion#candidate), + (OptionParser::Switch#compsys): remove unused variables. + Tue Dec 7 22:05:25 2010 Nobuyoshi Nakada <nobu@r...> * transcode.c (transcode_loop): call default handler of the given Index: lib/optparse.rb =================================================================== --- lib/optparse.rb (revision 30119) +++ lib/optparse.rb (revision 30120) @@ -229,7 +229,6 @@ def self.candidate(key, icase = false, pat = nil, &block) pat ||= Completion.regexp(key, icase) - canon, sw, cn = nil candidates = [] block.call do |k, *v| (if Regexp === k @@ -442,7 +441,7 @@ end def compsys(sdone, ldone) # :nodoc: - sopts, lopts, s = [], [], nil + sopts, lopts = [], [] @short.each {|s| sdone.fetch(s) {sopts << s}; sdone[s] = true} if @short @long.each {|s| ldone.fetch(s) {lopts << s}; ldone[s] = true} if @long return if sopts.empty? and lopts.empty? # completely hidden -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/