0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 08:23:56 +01:00

ircd:Ⓜ️:buffer: Remove cruft/unused from interface.

This commit is contained in:
Jason Volk 2020-09-30 15:44:01 -07:00
parent 12f28c8f9f
commit 28c4baf2b2

View file

@ -82,7 +82,6 @@ namespace ircd::buffer
// Single buffer observer utils
template<class it> bool null(const buffer<it> &buffer);
template<class it> bool full(const buffer<it> &buffer);
template<class it> bool empty(const buffer<it> &buffer);
template<class it> bool operator!(const buffer<it> &buffer);
template<class it> size_t size(const buffer<it> &buffer);
@ -401,14 +400,6 @@ ircd::buffer::empty(const buffer<it> &buffer)
return null(buffer) || std::distance(get<0>(buffer), get<1>(buffer)) == 0;
}
template<class it>
inline bool
__attribute__((always_inline))
ircd::buffer::full(const buffer<it> &buffer)
{
return std::distance(get<0>(buffer), get<1>(buffer)) == 0;
}
template<class it>
inline bool
__attribute__((always_inline))