image: remove unnecessary fill method
This commit is contained in:
parent
86d51f182f
commit
42a97816be
10
image.cpp
10
image.cpp
@ -169,15 +169,6 @@ util::image::buffer<T>::alloc (void) const
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
void
|
||||
util::image::buffer<T>::fill (const T v)
|
||||
{
|
||||
std::fill (begin (), end (), v);
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename T, typename U>
|
||||
static U
|
||||
@ -362,4 +353,5 @@ template util::image::buffer<uint8_t> util::image::buffer<uint8_t>::clone (void)
|
||||
template util::image::buffer<uint8_t> util::image::buffer<float>::clone (void) const;
|
||||
template util::image::buffer<uint8_t> util::image::buffer<double>::clone (void) const;
|
||||
|
||||
template util::image::buffer<float> util::image::buffer<float>::alloc (void) const;
|
||||
template util::image::buffer<float> util::image::buffer<float>::clone (void) const;
|
||||
|
@ -39,9 +39,6 @@ namespace util { namespace image {
|
||||
buffer (const buffer<T>&) = delete;
|
||||
buffer (buffer<T> &&) = default;
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
void fill (T);
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
/// allocate and return a buffer of the same dimensions. contents are undefined.
|
||||
template <typename U = T> buffer<U> alloc (void) const;
|
||||
|
Loading…
Reference in New Issue
Block a user