mirror of https://gitee.com/bigwinds/arangodb
cleanup
This commit is contained in:
parent
22e89f56ca
commit
be6431fbba
|
@ -340,11 +340,6 @@ TRI_doc_mptr_t* TRI_headers_t::request(size_t size) {
|
||||||
try {
|
try {
|
||||||
begin = new TRI_doc_mptr_t[blockSize];
|
begin = new TRI_doc_mptr_t[blockSize];
|
||||||
} catch (std::exception&) {
|
} catch (std::exception&) {
|
||||||
begin = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
// out of memory
|
|
||||||
if (begin == nullptr) {
|
|
||||||
TRI_set_errno(TRI_ERROR_OUT_OF_MEMORY);
|
TRI_set_errno(TRI_ERROR_OUT_OF_MEMORY);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,22 +105,6 @@ class TRI_headers_t {
|
||||||
|
|
||||||
void adjustTotalSize(int64_t, int64_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
|
/// @brief return the number of active headers
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue