1
0
Fork 0

removed dead code

This commit is contained in:
Jan Steemann 2016-03-04 14:52:15 +01:00
parent a1c758b615
commit be8a520ab8
3 changed files with 0 additions and 40 deletions

View File

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

View File

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

View File

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