public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] PR 107189 Remove useless _Alloc_node
@ 2022-10-12 20:18 François Dumont
  2022-11-14 17:56 ` François Dumont
  0 siblings, 1 reply; 5+ messages in thread
From: François Dumont @ 2022-10-12 20:18 UTC (permalink / raw)
  To: libstdc++; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

     libstdc++: Remove _Alloc_node instance in _Rb_tree [PR107189]

     libstdc++-v3/ChangeLog:

             PR libstdc++/107189
             * include/bits/stl_tree.h 
(_Rb_tree<>::_M_insert_range_equal): Remove
             unused _Alloc_node instance.

Ok to commit ?

François

[-- Attachment #2: pr107189.patch --]
[-- Type: text/x-patch, Size: 510 bytes --]

diff --git a/libstdc++-v3/include/bits/stl_tree.h b/libstdc++-v3/include/bits/stl_tree.h
index a4de6141765..33d25089a1d 100644
--- a/libstdc++-v3/include/bits/stl_tree.h
+++ b/libstdc++-v3/include/bits/stl_tree.h
@@ -1123,7 +1123,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 	__enable_if_t<!__same_value_type<_InputIterator>::value>
 	_M_insert_range_equal(_InputIterator __first, _InputIterator __last)
 	{
-	  _Alloc_node __an(*this);
 	  for (; __first != __last; ++__first)
 	    _M_emplace_equal(*__first);
 	}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-12 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12 20:18 [PATCH] PR 107189 Remove useless _Alloc_node François Dumont
2022-11-14 17:56 ` François Dumont
2023-01-04 21:13   ` François Dumont
2023-01-12 12:01     ` Jonathan Wakely
2023-01-12 12:02       ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).