Remove redundant loop in unsynchronized_pool_resource code
authorJonathan Wakely <jwakely@redhat.com>
Tue, 13 Nov 2018 22:58:00 +0000 (22:58 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 13 Nov 2018 22:58:00 +0000 (22:58 +0000)
commitb6b18271072de794c8995aad95e835c76cafd5ae
tree05956beb2b776aba14557e318a30e561eb2967df
parentf2e005857e52ded5338e1179c0bb0fe3375cea71
Remove redundant loop in unsynchronized_pool_resource code

* src/c++17/memory_resource.cc (bitset::find_first_unset()): Remove
unused function.
(bitset::get_first_unset()): Remove loop, if there's are unset bits
then _M_next_word refers to the first one and there's no need to loop.
(_Pool::_Pool(size_t, size_t), _Pool::block_size()): Remove dead code.

From-SVN: r266090
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++17/memory_resource.cc