1
0
Fork 0

removed some more Shaper

This commit is contained in:
jsteemann 2016-03-17 00:36:34 +01:00
parent a15e9d9550
commit 8148d73c03
3 changed files with 2 additions and 77 deletions

View File

@ -308,6 +308,7 @@ void DocumentAccessor::lookupDocumentAttribute(char const* name,
return;
}
#if 0
if (name[1] == 'r' && nameLength == 4 &&
memcmp(name, TRI_VOC_ATTRIBUTE_REV, nameLength) == 0) {
// _rev
@ -322,6 +323,7 @@ void DocumentAccessor::lookupDocumentAttribute(char const* name,
_current = _json.get();
return;
}
#endif
#if 0
// TODO

View File

@ -28,7 +28,6 @@
#include "Basics/JsonHelper.h"
#include "Utils/Transaction.h"
#include "VocBase/document-collection.h"
#include "VocBase/Shaper.h"
#include "Wal/Marker.h"
#include <velocypack/Options.h>
@ -123,37 +122,4 @@ static inline std::string TRI_EXTRACT_MARKER_KEY(arangodb::Transaction* trx,
trx, static_cast<TRI_df_marker_t const*>(mptr->getDataPtr()));
}
////////////////////////////////////////////////////////////////////////////////
/// @brief extracts the revision id from a marker
////////////////////////////////////////////////////////////////////////////////
static inline TRI_voc_rid_t TRI_EXTRACT_MARKER_RID(
arangodb::Transaction*, TRI_df_marker_t const* marker) {
#if 0
if (marker->_type == TRI_WAL_MARKER_VPACK_DOCUMENT) {
auto b = reinterpret_cast<char const*>(marker) +
sizeof(arangodb::wal::vpack_document_marker_t);
VPackSlice slice(reinterpret_cast<uint8_t const*>(b));
VPackSlice value = slice.get(TRI_VOC_ATTRIBUTE_REV);
return arangodb::velocypack::readUInt64(value.start() + 1);
}
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
// invalid marker type
TRI_ASSERT(false);
#endif
#endif
return 0;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief extracts the revision id from a master pointer
////////////////////////////////////////////////////////////////////////////////
static inline TRI_voc_rid_t TRI_EXTRACT_MARKER_RID(arangodb::Transaction* trx,
TRI_doc_mptr_t const* mptr) {
return TRI_EXTRACT_MARKER_RID(
trx, static_cast<TRI_df_marker_t const*>(mptr->getDataPtr()));
}
#endif

View File

@ -1,43 +0,0 @@
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unless required by applicable law or agreed to in writing, software
/// distributed under the License is distributed on an "AS IS" BASIS,
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/// See the License for the specific language governing permissions and
/// limitations under the License.
///
/// Copyright holder is ArangoDB GmbH, Cologne, Germany
///
/// @author Dr. Frank Celler
/// @author Martin Schoenert
////////////////////////////////////////////////////////////////////////////////
#ifndef ARANGOD_VOC_BASE_SHAPER_H
#define ARANGOD_VOC_BASE_SHAPER_H 1
#include "Basics/Common.h"
////////////////////////////////////////////////////////////////////////////////
/// @brief json shaper
////////////////////////////////////////////////////////////////////////////////
class Shaper {
public:
Shaper(Shaper const&) = delete;
Shaper& operator=(Shaper const&) = delete;
Shaper() {}
virtual ~Shaper() {}
};
#endif