mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
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
This commit is contained in:
committed by
Copybara-Service
parent
75b686b129
commit
bc5c03f738
@@ -30,20 +30,12 @@ namespace absl_testing {
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user