[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
Thu Mar 7 06:02:59 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: None (2LoS)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/84323.diff


2 Files Affected:

- (modified) libcxx/include/forward_list (-1) 
- (modified) libcxx/include/list (-1) 


``````````diff
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.

``````````

</details>


https://github.com/llvm/llvm-project/pull/84323


More information about the libcxx-commits mailing list