Belated cleanup of MetadataHandler#discardMetadata. Since we have per-action metadata handlers, we can just unconditionally discard all output metadata with this call.
--
MOS_MIGRATED_REVID=91008004
diff --git a/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java b/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java
index 004f2c3..40eabeb 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java
@@ -138,8 +138,8 @@
* {@link Token} if the action needs to be executed, and null otherwise.
*
* <p>If this method returns non-null, indicating that the action will be executed, the
- * metadataHandler's {@link MetadataHandler#discardMetadata} method must be called, so that it
- * does not serve stale metadata for the action's outputs after the action is executed.
+ * metadataHandler's {@link MetadataHandler#discardOutputMetadata} method must be called, so that
+ * it does not serve stale metadata for the action's outputs after the action is executed.
*/
// Note: the handler should only be used for DEPCHECKER events; there's no
// guarantee it will be available for other events.