YARN-9095. Removed Unused field from Resource: NUM_MANDATORY_RESOURCES

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Vidura Mudalige 2018-12-12 12:10:02 +05:30 committed by Akira Ajisaka
parent 4f622337ee
commit 04c03476c9
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 0 additions and 5 deletions

View File

@ -66,11 +66,6 @@ public abstract class Resource implements Comparable<Resource> {
protected ResourceInformation[] resources = null; 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 @Private
public static final int MEMORY_INDEX = 0; public static final int MEMORY_INDEX = 0;
@Private @Private