From ec9459ef40cfefaae1ff167d7eb1b23a0290297e Mon Sep 17 00:00:00 2001 From: Lucas Dohmen Date: Mon, 18 Nov 2013 11:25:43 +0100 Subject: [PATCH] Removed unused assignments --- js/server/modules/org/arangodb/graph.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/js/server/modules/org/arangodb/graph.js b/js/server/modules/org/arangodb/graph.js index e11d462021..d91bfaed99 100644 --- a/js/server/modules/org/arangodb/graph.js +++ b/js/server/modules/org/arangodb/graph.js @@ -602,7 +602,7 @@ Graph.prototype._saveVertex = function (id, shallow, waitForSync) { //////////////////////////////////////////////////////////////////////////////// Graph.prototype._replaceVertex = function (vertex_id, data) { - var result = this._vertices.replace(vertex_id, data); + this._vertices.replace(vertex_id, data); }; //////////////////////////////////////////////////////////////////////////////// @@ -610,7 +610,7 @@ Graph.prototype._replaceVertex = function (vertex_id, data) { //////////////////////////////////////////////////////////////////////////////// Graph.prototype._replaceEdge = function (edge_id, data) { - var result = this._edges.replace(edge_id, data); + this._edges.replace(edge_id, data); }; //////////////////////////////////////////////////////////////////////////////// @@ -662,10 +662,11 @@ Graph.prototype.getVertex = function (id) { Graph.prototype.getVertices = function () { var all = this._vertices.all(), - graph = this, - wrapper = function(object) { - return graph.constructVertex(object); - }; + graph = this, + wrapper = function(object) { + return graph.constructVertex(object); + }; + return new Iterator(wrapper, graph.constructVertex, "[edge iterator]"); };