diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-26 17:44:07 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-26 17:44:07 +0000 |
commit | 4b8f0e76373ee806ce32ada89203fc50c8b0070d (patch) | |
tree | 23e2f4dfe1454ca995ba215158a6c4150556a731 | |
parent | 9b932528286059af48454d492596934dcb6e4f5c (diff) |
* lib/shell/command-processor.rb: remove unused variable.
* lib/shell/system-command.rb: ditto.
* lib/tmpdir.rb: ditto.
* lib/uri/generic.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/shell/command-processor.rb | 2 | ||||
-rw-r--r-- | lib/shell/system-command.rb | 1 | ||||
-rw-r--r-- | lib/tmpdir.rb | 2 | ||||
-rw-r--r-- | lib/uri/generic.rb | 2 |
5 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,10 @@ +Sun Jul 27 02:41:50 2014 SHIBATA Hiroshi <[email protected]> + + * lib/shell/command-processor.rb: remove unused variable. + * lib/shell/system-command.rb: ditto. + * lib/tmpdir.rb: ditto. + * lib/uri/generic.rb: ditto. + Sun Jul 27 02:08:31 2014 SHIBATA Hiroshi <[email protected]> * lib/weakref.rb: split executable code into sample directory. diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb index 8a9ab55e73..b2070db11b 100644 --- a/lib/shell/command-processor.rb +++ b/lib/shell/command-processor.rb @@ -121,7 +121,7 @@ class Shell end f else - f = File.open(path, mode, perm, &b) + File.open(path, mode, perm, &b) end end end diff --git a/lib/shell/system-command.rb b/lib/shell/system-command.rb index 1a8bb1a90f..1fe37333d6 100644 --- a/lib/shell/system-command.rb +++ b/lib/shell/system-command.rb @@ -82,7 +82,6 @@ class Shell def start_import notify "Job(%id) start imp-pipe.", @shell.debug? - rs = @shell.record_separator unless rs _eop = true Thread.start { begin diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index d60edd5576..409d779b8a 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -19,7 +19,7 @@ class Dir def Dir::tmpdir if $SAFE > 0 - tmp = @@systmpdir + @@systmpdir else tmp = nil for dir in [ENV['TMPDIR'], ENV['TMP'], ENV['TEMP'], @@systmpdir, '/tmp', '.'] diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 32a4417701..6d42936bd0 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -551,7 +551,7 @@ module URI # escapes 'user:password' +v+ based on RFC 1738 section 3.1 def escape_userpass(v) - v = parser.escape(v, /[@:\/]/o) # RFC 1738 section 3.1 #/ + parser.escape(v, /[@:\/]/o) # RFC 1738 section 3.1 #/ end private :escape_userpass |