YARN-9095. Removed Unused field from Resource: NUM_MANDATORY_RESOURCES
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
parent
4f622337ee
commit
04c03476c9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue