From de8322344a06067b02ab38616d267f1c75aa2514 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 21 Dec 2022 11:58:44 -0800 Subject: Remove unneeded "friends" from KernelTimeout. PiperOrigin-RevId: 496974198 Change-Id: I73b4013a2ad9fd37650d788cbd1e758b327b59d2 --- absl/synchronization/internal/kernel_timeout.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'absl/synchronization') diff --git a/absl/synchronization/internal/kernel_timeout.h b/absl/synchronization/internal/kernel_timeout.h index 020472a0..f5c2c0ef 100644 --- a/absl/synchronization/internal/kernel_timeout.h +++ b/absl/synchronization/internal/kernel_timeout.h @@ -19,8 +19,8 @@ // Constructible from a absl::Time (for a timeout to be respected) or {} // (for "no timeout".) // This is a private low-level API for use by a handful of low-level -// components that are friends of this class. Higher-level components -// should build APIs based on absl::Time and absl::Duration. +// components. Higher-level components should build APIs based on +// absl::Time and absl::Duration. #ifndef ABSL_SYNCHRONIZATION_INTERNAL_KERNEL_TIMEOUT_H_ #define ABSL_SYNCHRONIZATION_INTERNAL_KERNEL_TIMEOUT_H_ @@ -39,7 +39,6 @@ namespace absl { ABSL_NAMESPACE_BEGIN namespace synchronization_internal { -class Futex; class Waiter; class KernelTimeout { @@ -124,10 +123,9 @@ class KernelTimeout { } return 0; } -#endif - friend class Futex; friend class Waiter; +#endif }; inline struct timespec KernelTimeout::MakeAbsTimespec() const { -- cgit v1.2.3