From 4ebf6c8d556fa79ec6c1a97b2bf6fef8beab5509 Mon Sep 17 00:00:00 2001 From: xuzifu666 <1206332514@qq.com> Date: Tue, 21 Mar 2023 22:46:15 +0800 Subject: [PATCH] HBASE-27736 HFileSystem.getLocalFs is not used (#5125) Co-authored-by: xuyu <11161569@vivo.com> Signed-off-by: Duo Zhang (cherry picked from commit dd3b1630e848d34db432526dee86289439594510) --- .../main/java/org/apache/hadoop/hbase/fs/HFileSystem.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/fs/HFileSystem.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/fs/HFileSystem.java index f02419ca90fb..ac90d2c686c2 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/fs/HFileSystem.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/fs/HFileSystem.java @@ -451,13 +451,6 @@ static public FileSystem get(Configuration conf) throws IOException { return new HFileSystem(conf, true); } - /** - * Wrap a LocalFileSystem within a HFileSystem. - */ - static public FileSystem getLocalFs(Configuration conf) throws IOException { - return new HFileSystem(FileSystem.getLocal(conf)); - } - /** * The org.apache.hadoop.fs.FilterFileSystem does not yet support createNonRecursive. This is a * hadoop bug and when it is fixed in Hadoop, this definition will go away.