1
0
Fork 0

removed unused parts

This commit is contained in:
jsteemann 2016-03-17 01:02:35 +01:00
parent 8148d73c03
commit c710168e5c
3 changed files with 2 additions and 27 deletions

View File

@ -29,7 +29,6 @@
#include "arangod/VocBase/datafile.h" #include "arangod/VocBase/datafile.h"
#include "arangod/VocBase/document-collection.h" #include "arangod/VocBase/document-collection.h"
#include "arangod/VocBase/VocShaper.h"
#include "arangod/Wal/Marker.h" #include "arangod/Wal/Marker.h"
template<typename T, typename U> size_t offsetOf (U T::*member) { template<typename T, typename U> size_t offsetOf (U T::*member) {

View File

@ -25,7 +25,6 @@
#define ARANGOD_VOC_BASE_DOCUMENT_COLLECTION_H 1 #define ARANGOD_VOC_BASE_DOCUMENT_COLLECTION_H 1
#include "Basics/Common.h" #include "Basics/Common.h"
#include "Basics/fasthash.h"
#include "Basics/ReadWriteLock.h" #include "Basics/ReadWriteLock.h"
#include "Cluster/ClusterInfo.h" #include "Cluster/ClusterInfo.h"
#include "VocBase/collection.h" #include "VocBase/collection.h"
@ -39,7 +38,6 @@
namespace arangodb { namespace arangodb {
class EdgeIndex; class EdgeIndex;
class ExampleMatcher;
class Index; class Index;
class KeyGenerator; class KeyGenerator;
class OperationOptions; class OperationOptions;
@ -456,28 +454,6 @@ static inline TRI_voc_cid_t TRI_EXTRACT_MARKER_TO_CID(
return TRI_EXTRACT_MARKER_TO_CID(marker); return TRI_EXTRACT_MARKER_TO_CID(marker);
} }
////////////////////////////////////////////////////////////////////////////////
/// @brief extracts the revision id from a marker
////////////////////////////////////////////////////////////////////////////////
static inline TRI_voc_rid_t TRI_EXTRACT_MARKER_RID(
TRI_df_marker_t const* marker) {
// invalid marker type
TRI_ASSERT(false);
return 0;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief extracts the revision id from a master pointer
////////////////////////////////////////////////////////////////////////////////
static inline TRI_voc_rid_t TRI_EXTRACT_MARKER_RID(TRI_doc_mptr_t const* mptr) {
TRI_df_marker_t const* marker =
static_cast<TRI_df_marker_t const*>(mptr->getDataPtr());
return TRI_EXTRACT_MARKER_RID(marker);
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// @brief extracts the pointer to the key from a marker /// @brief extracts the pointer to the key from a marker
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View File

@ -314,7 +314,7 @@ struct TRI_vocbase_t {
/// in this enum for compatibility with earlier versions /// in this enum for compatibility with earlier versions
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
typedef enum { enum TRI_vocbase_col_status_e {
TRI_VOC_COL_STATUS_CORRUPTED = 0, TRI_VOC_COL_STATUS_CORRUPTED = 0,
TRI_VOC_COL_STATUS_NEW_BORN = 1, // DEPRECATED, and shouldn't be used anymore TRI_VOC_COL_STATUS_NEW_BORN = 1, // DEPRECATED, and shouldn't be used anymore
TRI_VOC_COL_STATUS_UNLOADED = 2, TRI_VOC_COL_STATUS_UNLOADED = 2,
@ -322,7 +322,7 @@ typedef enum {
TRI_VOC_COL_STATUS_UNLOADING = 4, TRI_VOC_COL_STATUS_UNLOADING = 4,
TRI_VOC_COL_STATUS_DELETED = 5, TRI_VOC_COL_STATUS_DELETED = 5,
TRI_VOC_COL_STATUS_LOADING = 6 TRI_VOC_COL_STATUS_LOADING = 6
} TRI_vocbase_col_status_e; };
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// @brief collection container /// @brief collection container