From 04c03476c9724f44a9c767db8e4af812a3669221 Mon Sep 17 00:00:00 2001 From: Vidura Mudalige Date: Wed, 12 Dec 2018 12:10:02 +0530 Subject: [PATCH] YARN-9095. Removed Unused field from Resource: NUM_MANDATORY_RESOURCES Signed-off-by: Akira Ajisaka --- .../java/org/apache/hadoop/yarn/api/records/Resource.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java index 7740354c70b..b55a848edbb 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java @@ -66,11 +66,6 @@ public abstract class Resource implements Comparable { protected ResourceInformation[] resources = null; - // Number of mandatory resources, this is added to avoid invoke - // MandatoryResources.values().length, since values() internally will - // copy array, etc. - protected static final int NUM_MANDATORY_RESOURCES = 2; - @Private public static final int MEMORY_INDEX = 0; @Private