Ver Fonte

HDFS-16096. Delete useless method DirectoryWithQuotaFeature#setQuota (#3156)

Co-authored-by: zhuxiangyi <43412979@qq.com>
Reviewed-by: Viraj Jasani <vjasani@apache.org>
Xiangyi Zhu há 3 anos atrás
pai
commit
4cac6ec405

+ 0 - 15
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/DirectoryWithQuotaFeature.java

@@ -83,21 +83,6 @@ public final class DirectoryWithQuotaFeature implements INode.Feature {
     return new QuotaCounts.Builder().quotaCount(this.quota).build();
   }
 
-  /** Set this directory's quota
-   * 
-   * @param nsQuota Namespace quota to be set
-   * @param ssQuota Storagespace quota to be set
-   * @param type Storage type of the storage space quota to be set.
-   *             To set storagespace/namespace quota, type must be null.
-   */
-  void setQuota(long nsQuota, long ssQuota, StorageType type) {
-    if (type != null) {
-      this.quota.setTypeSpace(type, ssQuota);
-    } else {
-      setQuota(nsQuota, ssQuota);
-    }
-  }
-
   void setQuota(long nsQuota, long ssQuota) {
     this.quota.setNameSpace(nsQuota);
     this.quota.setStorageSpace(ssQuota);