Remove DataBuf::release() which is no longer used.

This commit is contained in:
Kevin Backhouse 2021-12-24 12:35:46 +00:00
parent 9f3240c91c
commit 29f7d0ccf0
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E
2 changed files with 0 additions and 15 deletions

View File

@ -205,13 +205,6 @@ namespace Exiv2 {
*/
void resize(long size);
/*!
@brief Release ownership of the buffer to the caller. Returns the
buffer as a data pointer and size pair, resets the internal
buffer.
*/
EXV_WARN_UNUSED_RESULT std::pair<byte*, long> release();
//! Reset value
void reset();
//@}

View File

@ -183,14 +183,6 @@ namespace Exiv2 {
size_ = size;
}
EXV_WARN_UNUSED_RESULT std::pair<byte*, long> DataBuf::release()
{
std::pair<byte*, long> p = {pData_, size_};
pData_ = nullptr;
size_ = 0;
return p;
}
void DataBuf::reset()
{
delete[] pData_;