[libcxx-commits] [libcxx] edab068 - [libc++][NFC] Remove unnecessary declarations in __thread/id.h

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 17 06:38:56 PDT 2023


Author: Louis Dionne
Date: 2023-07-17T09:37:32-04:00
New Revision: edab068de4c23a627c2a137f5e055239ef30eb44

URL: https://github.com/llvm/llvm-project/commit/edab068de4c23a627c2a137f5e055239ef30eb44
DIFF: https://github.com/llvm/llvm-project/commit/edab068de4c23a627c2a137f5e055239ef30eb44.diff

LOG: [libc++][NFC] Remove unnecessary declarations in __thread/id.h

Added: 
    

Modified: 
    libcxx/include/__thread/id.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__thread/id.h b/libcxx/include/__thread/id.h
index d6a09d9e7b6711..fd6e6dffafa952 100644
--- a/libcxx/include/__thread/id.h
+++ b/libcxx/include/__thread/id.h
@@ -23,8 +23,6 @@
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 #ifndef _LIBCPP_HAS_NO_THREADS
-
-class _LIBCPP_EXPORTED_FROM_ABI thread;
 class _LIBCPP_EXPORTED_FROM_ABI __thread_id;
 
 namespace this_thread {
@@ -112,12 +110,6 @@ inline _LIBCPP_HIDE_FROM_ABI strong_ordering operator<=>(__thread_id __x, __thre
 
 namespace this_thread {
 
-_LIBCPP_HIDE_FROM_ABI __thread_id get_id() _NOEXCEPT;
-
-} // namespace this_thread
-
-namespace this_thread {
-
 inline _LIBCPP_HIDE_FROM_ABI __thread_id get_id() _NOEXCEPT { return __libcpp_thread_get_current_id(); }
 
 } // namespace this_thread


        


More information about the libcxx-commits mailing list