image: remove unnecessary fill method

This commit is contained in:
Danny Robson 2015-06-04 20:04:37 +10:00
parent 86d51f182f
commit 42a97816be
2 changed files with 1 additions and 12 deletions

View File

@ -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;

View File

@ -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;