HDFS-10649. Remove unused PermissionStatus#applyUMask. Contributed by Chen Liang.

This commit is contained in:
John Zhuge 2017-03-23 23:31:27 -07:00
parent 128015584d
commit ab759e91b7
1 changed files with 0 additions and 13 deletions

View File

@ -43,10 +43,6 @@ public class PermissionStatus implements Writable {
public static PermissionStatus createImmutable( public static PermissionStatus createImmutable(
String user, String group, FsPermission permission) { String user, String group, FsPermission permission) {
return new PermissionStatus(user, group, permission) { return new PermissionStatus(user, group, permission) {
@Override
public PermissionStatus applyUMask(FsPermission umask) {
throw new UnsupportedOperationException();
}
@Override @Override
public void readFields(DataInput in) throws IOException { public void readFields(DataInput in) throws IOException {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
@ -76,15 +72,6 @@ public class PermissionStatus implements Writable {
/** Return permission */ /** Return permission */
public FsPermission getPermission() {return permission;} public FsPermission getPermission() {return permission;}
/**
* Apply umask.
* @see FsPermission#applyUMask(FsPermission)
*/
public PermissionStatus applyUMask(FsPermission umask) {
permission = permission.applyUMask(umask);
return this;
}
@Override @Override
public void readFields(DataInput in) throws IOException { public void readFields(DataInput in) throws IOException {
username = Text.readString(in, Text.DEFAULT_MAX_LEN); username = Text.readString(in, Text.DEFAULT_MAX_LEN);