HADOOP-9858. Remove unused private RawLocalFileSystem#execCommand method from branch-2. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1512491 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Nauroth 2013-08-09 21:08:38 +00:00
parent 1050cb5203
commit a21debedec
2 changed files with 4 additions and 9 deletions

View File

@ -93,6 +93,9 @@ Release 2.1.1-beta - UNRELEASED
HADOOP-9757. Har metadata cache can grow without limit (Cristina Abad via daryn) HADOOP-9757. Har metadata cache can grow without limit (Cristina Abad via daryn)
HADOOP-9858. Remove unused private RawLocalFileSystem#execCommand method from
branch-2. (cnauroth)
Release 2.1.0-beta - 2013-08-06 Release 2.1.0-beta - 2013-08-06
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -637,7 +637,7 @@ public class RawLocalFileSystem extends FileSystem {
FileUtil.makeShellPath(pathToFile(p), true))); FileUtil.makeShellPath(pathToFile(p), true)));
} }
} }
/** /**
* Sets the {@link Path}'s last modified time <em>only</em> to the given * Sets the {@link Path}'s last modified time <em>only</em> to the given
* valid time. * valid time.
@ -660,14 +660,6 @@ public class RawLocalFileSystem extends FileSystem {
} }
} }
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;
}
@Override @Override
public boolean supportsSymlinks() { public boolean supportsSymlinks() {
return true; return true;