From 565009db6881e70af1a3ee9cf6e9fc9c414c31ce Mon Sep 17 00:00:00 2001 From: jsteemann Date: Tue, 8 Nov 2016 16:46:22 +0100 Subject: [PATCH] remove unused ctor --- arangod/VocBase/TraverserOptions.cpp | 27 --------------------------- arangod/VocBase/TraverserOptions.h | 4 ---- 2 files changed, 31 deletions(-) diff --git a/arangod/VocBase/TraverserOptions.cpp b/arangod/VocBase/TraverserOptions.cpp index 409db3b59b..9ba48f9bf9 100644 --- a/arangod/VocBase/TraverserOptions.cpp +++ b/arangod/VocBase/TraverserOptions.cpp @@ -347,33 +347,6 @@ arangodb::traverser::TraverserOptions::TraverserOptions( useBreadthFirst); } -arangodb::traverser::TraverserOptions::TraverserOptions( - TraverserOptions const& other) - : _trx(other._trx), - _baseVertexExpression(nullptr), - _tmpVar(nullptr), - _ctx(new aql::FixedVarExpressionContext()), - _isCoordinator(arangodb::ServerState::instance()->isCoordinator()), - minDepth(other.minDepth), - maxDepth(other.maxDepth), - useBreadthFirst(other.useBreadthFirst), - uniqueVertices(other.uniqueVertices), - uniqueEdges(other.uniqueEdges) { - TRI_ASSERT(other._baseLookupInfos.empty()); - TRI_ASSERT(other._depthLookupInfo.empty()); - TRI_ASSERT(other._vertexExpressions.empty()); - TRI_ASSERT(other._tmpVar == nullptr); - TRI_ASSERT(other._baseVertexExpression == nullptr); - - // Check for illegal option combination: - TRI_ASSERT(uniqueEdges != - arangodb::traverser::TraverserOptions::UniquenessLevel::GLOBAL); - TRI_ASSERT( - uniqueVertices != - arangodb::traverser::TraverserOptions::UniquenessLevel::GLOBAL || - useBreadthFirst); -} - arangodb::traverser::TraverserOptions::~TraverserOptions() { for (auto& pair : _vertexExpressions) { delete pair.second; diff --git a/arangod/VocBase/TraverserOptions.h b/arangod/VocBase/TraverserOptions.h index bca89c3e0c..434ab0a333 100644 --- a/arangod/VocBase/TraverserOptions.h +++ b/arangod/VocBase/TraverserOptions.h @@ -135,10 +135,6 @@ struct TraverserOptions { TraverserOptions(arangodb::aql::Query*, arangodb::velocypack::Slice, arangodb::velocypack::Slice); - /// @brief This copy constructor is only working during planning phase. - /// After planning this node should not be copied anywhere. - TraverserOptions(TraverserOptions const&); - virtual ~TraverserOptions(); /// @brief Build a velocypack for cloning in the plan.