[libcxx-commits] [libcxx] Removed dedundant template in '__delete_node()' member function of '__forward_list_base' and '__list_imp' classes. (PR #84323)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Apr 13 01:25:28 PDT 2024


https://github.com/2LoS updated https://github.com/llvm/llvm-project/pull/84323

>From 28d3f04b976c25d32d7e714f80b13fa42129290e Mon Sep 17 00:00:00 2001
From: LoS <aurumpuro at gmail.com>
Date: Thu, 7 Mar 2024 14:28:07 +0100
Subject: [PATCH] the variadic template 'template <class... Args>' has been
 removed from both '__forward_list_base' and '__list_imp' as it was useless.

---
 libcxx/include/forward_list | 1 -
 libcxx/include/list         | 1 -
 2 files changed, 2 deletions(-)

diff --git a/libcxx/include/forward_list b/libcxx/include/forward_list
index a62b171a46783b..caf9cbbcff8c20 100644
--- a/libcxx/include/forward_list
+++ b/libcxx/include/forward_list
@@ -555,7 +555,6 @@ protected:
     return __guard.__release_ptr();
   }
 
-  template <class... _Args>
   _LIBCPP_HIDE_FROM_ABI void __delete_node(__node_pointer __node) {
     // For the same reason as above, we use the allocator's destroy() method for the value_type,
     // but not for the node itself.
diff --git a/libcxx/include/list b/libcxx/include/list
index 8f0689268e2a5a..0da2ca24ae7eca 100644
--- a/libcxx/include/list
+++ b/libcxx/include/list
@@ -568,7 +568,6 @@ protected:
     return __guard.__release_ptr();
   }
 
-  template <class... _Args>
   _LIBCPP_HIDE_FROM_ABI void __delete_node(__node_pointer __node) {
     // For the same reason as above, we use the allocator's destroy() method for the value_type,
     // but not for the node itself.



More information about the libcxx-commits mailing list