mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove unused Atom.ContainerAtom.getChildAtomOfTypeCount(int) method
This is in preparation for making this class public. PiperOrigin-RevId: 662466043
This commit is contained in:
parent
9dfd72b6c6
commit
9d008da356
1 changed files with 0 additions and 25 deletions
|
|
@ -551,31 +551,6 @@ import java.util.List;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the total number of leaf/container children of this atom with the given type.
|
|
||||||
*
|
|
||||||
* @param type The type of child atoms to count.
|
|
||||||
* @return The total number of leaf/container children of this atom with the given type.
|
|
||||||
*/
|
|
||||||
public int getChildAtomOfTypeCount(int type) {
|
|
||||||
int count = 0;
|
|
||||||
int size = leafChildren.size();
|
|
||||||
for (int i = 0; i < size; i++) {
|
|
||||||
LeafAtom atom = leafChildren.get(i);
|
|
||||||
if (atom.type == type) {
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
size = containerChildren.size();
|
|
||||||
for (int i = 0; i < size; i++) {
|
|
||||||
ContainerAtom atom = containerChildren.get(i);
|
|
||||||
if (atom.type == type) {
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getAtomTypeString(type)
|
return getAtomTypeString(type)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue