From 124c2b61ac59f8e8839f9d01eb501b2bcd1642d7 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Mon, 1 Jan 2024 22:31:54 -0800 Subject: [PATCH] =?UTF-8?q?=C2=A0deleted=20capture=5Flist::empty()=20and?= =?UTF-8?q?=20dynamic=5Fallocator::size()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/boost/leaf/detail/capture_list.hpp | 5 ----- include/boost/leaf/error.hpp | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/include/boost/leaf/detail/capture_list.hpp b/include/boost/leaf/detail/capture_list.hpp index ec0beb88..a4047929 100644 --- a/include/boost/leaf/detail/capture_list.hpp +++ b/include/boost/leaf/detail/capture_list.hpp @@ -93,11 +93,6 @@ namespace leaf_detail } ); } - bool empty() const noexcept - { - return first_ == nullptr; - } - template void print( std::basic_ostream & os, char const * title, int const err_id_to_print ) const { diff --git a/include/boost/leaf/error.hpp b/include/boost/leaf/error.hpp index 8876c171..b53794f2 100644 --- a/include/boost/leaf/error.hpp +++ b/include/boost/leaf/error.hpp @@ -370,17 +370,6 @@ namespace leaf_detail } ); } - int size() const noexcept - { - int c = 0; - for_each( - [&]( capture_list::node const & ) - { - ++c; - } ); - return c; - } - template LeafResult extract_capture_list() noexcept { @@ -394,7 +383,6 @@ namespace leaf_detail return { err_id_, capture_list(f) }; } - using capture_list::empty; using capture_list::print; };