Remove obsolete comments and inlining on absl_testing::status_internal::GetStatus These functions are not in the same namespace as their arguments, so ADL is not possible. PiperOrigin-RevId: 926284424 Change-Id: I778c6b4de0fee337f9bd09cae98a88345f12b4c4
diff --git a/absl/status/internal/status_matchers.h b/absl/status/internal/status_matchers.h index 2eafd13..d4b35cc 100644 --- a/absl/status/internal/status_matchers.h +++ b/absl/status/internal/status_matchers.h
@@ -30,20 +30,12 @@ ABSL_NAMESPACE_BEGIN namespace status_internal { -// TODO(b/323927127): Remove ABSL_REFACTOR_INLINE once callers are cleaned up -// and move it into a namespace like adl_barrier without types to avoid -// accidental ADL. -ABSL_REFACTOR_INLINE inline const absl::Status& GetStatus( - const absl::Status& status) { +inline const absl::Status& GetStatus(const absl::Status& status) { return status; } -// TODO(b/323927127): Remove ABSL_REFACTOR_INLINE once callers are cleaned up -// and move it into a namespace like adl_barrier without types to avoid -// accidental ADL. template <typename T> -ABSL_REFACTOR_INLINE const absl::Status& GetStatus( - const absl::StatusOr<T>& status) { +const absl::Status& GetStatus(const absl::StatusOr<T>& status) { return status.status(); }