Skip to content

Commit

Permalink
 deleted capture_list::empty() and dynamic_allocator::size()
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Jan 2, 2024
1 parent fcd845f commit 124c2b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions include/boost/leaf/detail/capture_list.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ namespace leaf_detail
} );
}

bool empty() const noexcept
{
return first_ == nullptr;
}

template <class CharT, class Traits>
void print( std::basic_ostream<CharT, Traits> & os, char const * title, int const err_id_to_print ) const
{
Expand Down
12 changes: 0 additions & 12 deletions include/boost/leaf/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,17 +370,6 @@ namespace leaf_detail
} );
}

int size() const noexcept
{
int c = 0;
for_each(
[&]( capture_list::node const & )
{
++c;
} );
return c;
}

template <class LeafResult>
LeafResult extract_capture_list() noexcept
{
Expand All @@ -394,7 +383,6 @@ namespace leaf_detail
return { err_id_, capture_list(f) };
}

using capture_list::empty;
using capture_list::print;
};

Expand Down

0 comments on commit 124c2b6

Please sign in to comment.