Deprecate OdrefreshReported::Status::kTimeLimitExceeded

As part of the changes done in aosp/2219943, the condition
for which the time limit for the odrefresh compilation has
been reached is now encoded within the Dex2OatResult value,
making this enum value for Status redundant.

Bug: 247070182
Test: m com.android.art
Change-Id: Ib90e33317a721431839f690e5e01f7e0ee6b8887
diff --git a/odrefresh/odr_metrics.h b/odrefresh/odr_metrics.h
index 4a29ede..79311ad 100644
--- a/odrefresh/odr_metrics.h
+++ b/odrefresh/odr_metrics.h
@@ -55,7 +55,8 @@
     kNoSpace = 2,
     kIoError = 3,
     kDex2OatError = 4,
-    kTimeLimitExceeded = 5,
+    // Value 5 was kTimeLimitExceeded, but has been removed in favour of
+    // reporting the exit code for Dex2Oat (set to ExecResult::kTimedOut)
     kStagingFailed = 6,
     kInstallFailed = 7,
     // Failed to access the dalvik-cache directory due to lack of permission.
diff --git a/odrefresh/odr_statslog_android.cc b/odrefresh/odr_statslog_android.cc
index f8ed4f8..90f769f 100644
--- a/odrefresh/odr_statslog_android.cc
+++ b/odrefresh/odr_statslog_android.cc
@@ -71,8 +71,6 @@
       return metrics::statsd::ODREFRESH_REPORTED__STATUS__STATUS_IO_ERROR;
     case OdrMetrics::Status::kDex2OatError:
       return metrics::statsd::ODREFRESH_REPORTED__STATUS__STATUS_DEX2OAT_ERROR;
-    case OdrMetrics::Status::kTimeLimitExceeded:
-      return metrics::statsd::ODREFRESH_REPORTED__STATUS__STATUS_TIME_LIMIT_EXCEEDED;
     case OdrMetrics::Status::kStagingFailed:
       return metrics::statsd::ODREFRESH_REPORTED__STATUS__STATUS_STAGING_FAILED;
     case OdrMetrics::Status::kInstallFailed: