From 9d008da356bd6e26f4f18a9dba48ce9741caad6b Mon Sep 17 00:00:00 2001 From: ibaker Date: Tue, 13 Aug 2024 04:38:03 -0700 Subject: [PATCH] Remove unused `Atom.ContainerAtom.getChildAtomOfTypeCount(int)` method This is in preparation for making this class public. PiperOrigin-RevId: 662466043 --- .../androidx/media3/extractor/mp4/Atom.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/mp4/Atom.java b/libraries/extractor/src/main/java/androidx/media3/extractor/mp4/Atom.java index 9b5c255d2c..9060521dd5 100644 --- a/libraries/extractor/src/main/java/androidx/media3/extractor/mp4/Atom.java +++ b/libraries/extractor/src/main/java/androidx/media3/extractor/mp4/Atom.java @@ -551,31 +551,6 @@ import java.util.List; 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 public String toString() { return getAtomTypeString(type)