Simplify call to checkVisibilityOfResourceReferences

Switch to using ImmutableList.of(), as the manifest references are empty.

PiperOrigin-RevId: 945789183
Change-Id: Ib4c764bb54a141db34751c802ee5a78a03a1aeca
diff --git a/src/tools/java/com/google/devtools/build/android/ValidateAndLinkResourcesAction.java b/src/tools/java/com/google/devtools/build/android/ValidateAndLinkResourcesAction.java
index a8b2f84..90232fb 100644
--- a/src/tools/java/com/google/devtools/build/android/ValidateAndLinkResourcesAction.java
+++ b/src/tools/java/com/google/devtools/build/android/ValidateAndLinkResourcesAction.java
@@ -18,7 +18,6 @@
 import static com.google.common.collect.ImmutableSet.toImmutableSet;
 
 import com.android.aapt.Resources.Reference;
-import com.android.aapt.Resources.XmlNode;
 import com.beust.jcommander.JCommander;
 import com.beust.jcommander.Parameter;
 import com.beust.jcommander.Parameters;
@@ -30,7 +29,6 @@
 import com.google.devtools.build.android.aapt2.ResourceLinker;
 import com.google.devtools.build.android.aapt2.StaticLibrary;
 import com.google.devtools.build.android.resources.Visibility;
-import com.google.devtools.build.android.xml.XmlUtils;
 import java.nio.file.Path;
 import java.util.List;
 import java.util.Map;
@@ -158,9 +156,7 @@
       // TODO(b/146663858): distinguish direct/transitive deps for "strict deps".
       // TODO(b/128711690): validate AndroidManifest.xml
       checkVisibilityOfResourceReferences(
-          /* manifestReferences= */ XmlUtils.getAllResourceReferences(XmlNode.getDefaultInstance()),
-          resources,
-          includes);
+          /* manifestReferences= */ ImmutableList.of(), resources, includes);
 
       ImmutableList<StaticLibrary> resourceApks = ImmutableList.of();
       if (options.resourceApks != null) {