From aee538be6c2ab324de4d7834cd3347959272de01 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Fri, 14 Oct 2016 14:08:31 -0700 Subject: [PATCH] HADOOP-13721. Remove stale method ViewFileSystem#getTrashCanLocation. Contributed by Manoj Govindassamy. --- .../java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java index edc59ab711..f6947ff56f 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java @@ -220,12 +220,6 @@ public ViewFileSystem(final Configuration conf) throws IOException { this(FsConstants.VIEWFS_URI, conf); } - public Path getTrashCanLocation(final Path f) throws FileNotFoundException { - final InodeTree.ResolveResult res = - fsState.resolve(getUriPath(f), true); - return res.isInternalDir() ? null : res.targetFileSystem.getHomeDirectory(); - } - @Override public URI getUri() { return myUri;