summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 03:32:36 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 03:32:36 +0000
commit4c91cbb9a82f2bf74bb7f48b758050fb071c15a1 (patch)
tree28320dfe254ccd7288891357d069e3fe8f645275
parent6f74ab1d977e492c99f96f665243c48180b7bccb (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--lib/shell.rb3
-rw-r--r--lib/shell/builtin-command.rb14
-rw-r--r--lib/shell/command-processor.rb3
4 files changed, 6 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index a85ee1dfe6..5f476c7f4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Aug 22 12:32:15 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
+
+ * 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@gmail.com>
* lib/complex.rb: removed deprecated library.
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"]],