mirror of https://gitee.com/bigwinds/arangodb
removed dead code
This commit is contained in:
parent
a1c758b615
commit
be8a520ab8
|
@ -30,7 +30,6 @@
|
|||
// #define TRI_CHECK_MULTI_POINTER_HASH 1
|
||||
|
||||
#include "Basics/Common.h"
|
||||
#include "Basics/JsonHelper.h"
|
||||
#include "Basics/Logger.h"
|
||||
#include "Basics/memory-map.h"
|
||||
#include "Basics/Mutex.h"
|
||||
|
@ -296,23 +295,6 @@ class AssocMulti {
|
|||
builder.add("totalUsed", VPackValue(size()));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Appends information about statistics in the given json.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void appendToJson(TRI_memory_zone_t* zone, Json& json) {
|
||||
Json bkts(zone, Json::Array);
|
||||
for (auto& b : _buckets) {
|
||||
Json bucketInfo(zone, Json::Object);
|
||||
bucketInfo("nrAlloc", Json(static_cast<double>(b._nrAlloc)));
|
||||
bucketInfo("nrUsed", Json(static_cast<double>(b._nrUsed)));
|
||||
bkts.add(bucketInfo);
|
||||
}
|
||||
json("buckets", bkts);
|
||||
json("nrBuckets", Json(static_cast<double>(_buckets.size())));
|
||||
json("totalUsed", Json(static_cast<double>(size())));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief capacity(), return the number of allocated items
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
#include "Basics/Common.h"
|
||||
#include "Basics/gcd.h"
|
||||
#include "Basics/JsonHelper.h"
|
||||
#include "Basics/Logger.h"
|
||||
#include "Basics/memory-map.h"
|
||||
#include "Basics/MutexLocker.h"
|
||||
|
@ -391,26 +390,6 @@ class AssocUnique {
|
|||
return TRI_ERROR_NO_ERROR;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Appends information about statistics in the given json.
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void appendToJson(TRI_memory_zone_t* zone, arangodb::basics::Json& json) {
|
||||
arangodb::basics::Json bkts(zone, arangodb::basics::Json::Array);
|
||||
for (auto& b : _buckets) {
|
||||
arangodb::basics::Json bucketInfo(zone, arangodb::basics::Json::Object);
|
||||
bucketInfo("nrAlloc",
|
||||
arangodb::basics::Json(static_cast<double>(b._nrAlloc)));
|
||||
bucketInfo("nrUsed",
|
||||
arangodb::basics::Json(static_cast<double>(b._nrUsed)));
|
||||
bkts.add(bucketInfo);
|
||||
}
|
||||
json("buckets", bkts);
|
||||
json("nrBuckets",
|
||||
arangodb::basics::Json(static_cast<double>(_buckets.size())));
|
||||
json("totalUsed", arangodb::basics::Json(static_cast<double>(size())));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Appends information about statistics in the given VPackBuilder
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#define LIB_BASICS_SKIP_LIST_H 1
|
||||
|
||||
#include "Basics/Common.h"
|
||||
#include "Basics/JsonHelper.h"
|
||||
#include "Basics/random.h"
|
||||
|
||||
#include <velocypack/Builder.h>
|
||||
|
|
Loading…
Reference in New Issue