1
0
Fork 0
This commit is contained in:
Jan Steemann 2016-02-25 17:20:54 +01:00
parent 22e89f56ca
commit be6431fbba
2 changed files with 0 additions and 21 deletions

View File

@ -340,11 +340,6 @@ TRI_doc_mptr_t* TRI_headers_t::request(size_t size) {
try {
begin = new TRI_doc_mptr_t[blockSize];
} catch (std::exception&) {
begin = nullptr;
}
// out of memory
if (begin == nullptr) {
TRI_set_errno(TRI_ERROR_OUT_OF_MEMORY);
return nullptr;
}

View File

@ -105,22 +105,6 @@ class TRI_headers_t {
void adjustTotalSize(int64_t, int64_t);
//////////////////////////////////////////////////////////////////////////////
/// @brief return the element at the head of the list
///
/// note: the element returned might be nullptr
//////////////////////////////////////////////////////////////////////////////
inline TRI_doc_mptr_t* front() const { return _begin; }
//////////////////////////////////////////////////////////////////////////////
/// @brief return the element at the tail of the list
///
/// note: the element returned might be nullptr
//////////////////////////////////////////////////////////////////////////////
inline TRI_doc_mptr_t* back() const { return _end; }
//////////////////////////////////////////////////////////////////////////////
/// @brief return the number of active headers
//////////////////////////////////////////////////////////////////////////////