diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 03:32:36 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 03:32:36 +0000 |
commit | 4c91cbb9a82f2bf74bb7f48b758050fb071c15a1 (patch) | |
tree | 28320dfe254ccd7288891357d069e3fe8f645275 /lib | |
parent | 6f74ab1d977e492c99f96f665243c48180b7bccb (diff) | |
download | ruby-4c91cbb9a82f2bf74bb7f48b758050fb071c15a1.tar.gz |
* lib/shell.rb: removed commented-out code.
* lib/shell/builtin-command.rb: ditto.
* lib/shell/command-processor.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/shell.rb | 3 | ||||
-rw-r--r-- | lib/shell/builtin-command.rb | 14 | ||||
-rw-r--r-- | lib/shell/command-processor.rb | 3 |
3 files changed, 0 insertions, 20 deletions
diff --git a/lib/shell.rb b/lib/shell.rb index 2204e27cc6..90d55d021c 100644 --- a/lib/shell.rb +++ b/lib/shell.rb @@ -92,7 +92,6 @@ class Shell 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 attr_accessor :cascade, :debug, :verbose -# alias cascade? cascade alias debug? debug alias verbose? verbose @verbose = true @@ -448,7 +446,6 @@ class Shell yield mes if iterator? if _head _head = false -# "shell" " + mes prefix + mes else " "* prefix.size + mes diff --git a/lib/shell/builtin-command.rb b/lib/shell/builtin-command.rb index b1ca5c38f6..80a0ce5534 100644 --- a/lib/shell/builtin-command.rb +++ b/lib/shell/builtin-command.rb @@ -83,20 +83,6 @@ class Shell 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 diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index b2070db11b..13bc50c3fe 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -24,7 +24,6 @@ class Shell # 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 end end end - # public :open # call-seq: # unlink(path) @@ -650,7 +648,6 @@ class Shell ["mtime", ["FILENAME"]], ["readlink", ["FILENAME"]], ["rename", ["FILENAME_FROM", "FILENAME_TO"]], - # ["size", ["FILENAME"]], ["split", ["pathname"]], ["stat", ["FILENAME"]], ["symlink", ["FILENAME_O", "FILENAME_N"]], |