ruby-changes:35164
From: hsbt <ko1@a...>
Date: Fri, 22 Aug 2014 12:32:45 +0900 (JST)
Subject: [ruby-changes:35164] hsbt:r47246 (trunk): * lib/shell.rb: removed commented-out code.
hsbt 2014-08-22 12:32:36 +0900 (Fri, 22 Aug 2014) New Revision: 47246 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47246 Log: * lib/shell.rb: removed commented-out code. * lib/shell/builtin-command.rb: ditto. * lib/shell/command-processor.rb: ditto. Modified files: trunk/ChangeLog trunk/lib/shell/builtin-command.rb trunk/lib/shell/command-processor.rb trunk/lib/shell.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47245) +++ ChangeLog (revision 47246) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Aug 22 12:32:15 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * lib/shell.rb: removed commented-out code. + * lib/shell/builtin-command.rb: ditto. + * lib/shell/command-processor.rb: ditto. + Fri Aug 22 12:21:46 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> * lib/complex.rb: removed deprecated library. Index: lib/shell.rb =================================================================== --- lib/shell.rb (revision 47245) +++ lib/shell.rb (revision 47246) @@ -92,7 +92,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell.rb#L92 include Error extend Exception2MessageMapper -# @cascade = true # debug: true -> normal debug # debug: 1 -> eval definition debug # debug: 2 -> detail inspect debug @@ -108,7 +107,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell.rb#L107 attr_accessor :cascade, :debug, :verbose -# alias cascade? cascade alias debug? debug alias verbose? verbose @verbose = true @@ -448,7 +446,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell.rb#L446 yield mes if iterator? if _head _head = false -# "shell" " + mes prefix + mes else " "* prefix.size + mes Index: lib/shell/builtin-command.rb =================================================================== --- lib/shell/builtin-command.rb (revision 47245) +++ lib/shell/builtin-command.rb (revision 47246) @@ -83,20 +83,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/builtin-command.rb#L83 end end -# class Sort < Cat -# def initialize(sh, *filenames) -# super -# end -# -# def each(rs = nil) -# ary = [] -# super{|l| ary.push l} -# for l in ary.sort! -# yield l -# end -# end -# end - class AppendIO < BuiltInCommand def initialize(sh, io, filter) super sh Index: lib/shell/command-processor.rb =================================================================== --- lib/shell/command-processor.rb (revision 47245) +++ lib/shell/command-processor.rb (revision 47246) @@ -24,7 +24,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/command-processor.rb#L24 # Alternatively, you can execute any command via # Shell::CommandProcessor#system even if it is not defined. class CommandProcessor -# include Error # # initialize of Shell and related classes. @@ -125,7 +124,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/command-processor.rb#L124 end end end - # public :open # call-seq: # unlink(path) @@ -650,7 +648,6 @@ class Shell https://github.com/ruby/ruby/blob/trunk/lib/shell/command-processor.rb#L648 ["mtime", ["FILENAME"]], ["readlink", ["FILENAME"]], ["rename", ["FILENAME_FROM", "FILENAME_TO"]], - # ["size", ["FILENAME"]], ["split", ["pathname"]], ["stat", ["FILENAME"]], ["symlink", ["FILENAME_O", "FILENAME_N"]], -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/