Author: cnauroth Date: Fri Aug 9 21:16:28 2013 New Revision: 1512499 URL: http://svn.apache.org/r1512499 Log: HADOOP-9858. Remove unused private RawLocalFileSystem#execCommand method from branch-2. Contributed by Chris Nauroth.
Modified: hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/CHANGES.txt hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java Modified: hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1512499&r1=1512498&r2=1512499&view=diff ============================================================================== --- hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/CHANGES.txt (original) +++ hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/CHANGES.txt Fri Aug 9 21:16:28 2013 @@ -42,6 +42,9 @@ Release 2.1.1-beta - UNRELEASED HADOOP-9675. use svn:eol-style native for html to prevent line ending issues (Colin Patrick McCabe) + HADOOP-9858. Remove unused private RawLocalFileSystem#execCommand method from + branch-2. (cnauroth) + Release 2.1.0-beta - 2013-08-06 INCOMPATIBLE CHANGES Modified: hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java?rev=1512499&r1=1512498&r2=1512499&view=diff ============================================================================== --- hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java (original) +++ hadoop/common/branches/branch-2.1-beta/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java Fri Aug 9 21:16:28 2013 @@ -638,7 +638,7 @@ public class RawLocalFileSystem extends FileUtil.makeShellPath(pathToFile(p), true))); } } - + /** * Sets the {@link Path}'s last modified time <em>only</em> to the given * valid time. @@ -661,12 +661,4 @@ public class RawLocalFileSystem extends } } - private static String execCommand(File f, String... cmd) throws IOException { - String[] args = new String[cmd.length + 1]; - System.arraycopy(cmd, 0, args, 0, cmd.length); - args[cmd.length] = FileUtil.makeShellPath(f, true); - String output = Shell.execCommand(args); - return output; - } - }