mirror of https://gitee.com/bigwinds/arangodb
removed unused variables
This commit is contained in:
parent
a6215a2c84
commit
9054e14232
|
@ -365,7 +365,6 @@ function CheckCollection (collection, issues) {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function main (argv) {
|
||||
var argc = argv.length;
|
||||
var databases = internal.db._listDatabases();
|
||||
var i;
|
||||
|
||||
|
|
|
@ -142,9 +142,6 @@
|
|||
delete SYS_DEFINE_ACTION;
|
||||
|
||||
internal.actionLoaded = function() {
|
||||
var modules;
|
||||
var i;
|
||||
|
||||
console.debug("actions loaded");
|
||||
};
|
||||
}
|
||||
|
|
|
@ -633,8 +633,6 @@ function defineRoutePart (route, subwhere, parts, pos, constraint, callback) {
|
|||
var part;
|
||||
var subsub;
|
||||
var ok;
|
||||
var p1;
|
||||
var p2;
|
||||
|
||||
part = parts[pos];
|
||||
if (part === undefined) {
|
||||
|
@ -763,8 +761,6 @@ function defineRoute (route, where, url, callback) {
|
|||
'use strict';
|
||||
|
||||
var methods;
|
||||
var branch;
|
||||
var i;
|
||||
var j;
|
||||
|
||||
methods = intersectMethods(url.methods, callback.methods);
|
||||
|
@ -1220,7 +1216,6 @@ function reloadRouting () {
|
|||
var r = routes[key];
|
||||
|
||||
for (i = 0; i < r.length; ++i) {
|
||||
var route = r[i];
|
||||
var context = { appModule: appModule };
|
||||
|
||||
installRoute(RoutingCache[arangodb.db._name()][key],
|
||||
|
@ -1241,7 +1236,6 @@ function reloadRouting () {
|
|||
|
||||
// clone the route object so the barrier for the collection can be removed soon
|
||||
var route = routes[j];
|
||||
var r;
|
||||
|
||||
try {
|
||||
if (route.hasOwnProperty('routes') || route.hasOwnProperty('middleware')) {
|
||||
|
@ -1882,7 +1876,6 @@ function pathHandler (req, res, options, next) {
|
|||
'use strict';
|
||||
|
||||
var filename;
|
||||
var result;
|
||||
|
||||
filename = fs.join(options.path, fs.join.apply(fs.join, req.suffix));
|
||||
|
||||
|
|
|
@ -1554,7 +1554,6 @@ function RELATIONAL_CMP (lhs, rhs) {
|
|||
function RELATIONAL_IN (lhs, rhs) {
|
||||
"use strict";
|
||||
|
||||
var leftWeight = TYPEWEIGHT(lhs);
|
||||
var rightWeight = TYPEWEIGHT(rhs);
|
||||
|
||||
if (rightWeight !== TYPEWEIGHT_LIST) {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
/// @author Copyright 2013, triAGENS GmbH, Cologne, Germany
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var arangodb = require("org/arangodb"),
|
||||
var require("org/arangodb"),
|
||||
db = require("org/arangodb").db,
|
||||
crypto = require("org/arangodb/crypto"),
|
||||
internal = require("internal"),
|
||||
|
|
|
@ -390,8 +390,7 @@ extend(RequestContext.prototype, {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
onlyIfAuthenticated: function (code, reason) {
|
||||
'use strict';
|
||||
var handler = this.route.action.callback,
|
||||
check;
|
||||
var check;
|
||||
|
||||
check = function (req) {
|
||||
if (!(req.user && req.currentSession)) {
|
||||
|
|
|
@ -36,7 +36,6 @@ var getRawQueryResults = helper.getRawQueryResults;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function ahuacatlComplexTestSuite () {
|
||||
var errors = internal.errors;
|
||||
var numbers = null;
|
||||
|
||||
return {
|
||||
|
|
|
@ -303,7 +303,6 @@ function dumpTestSuite () {
|
|||
assertEqual("primary", c.getIndexes()[0].type);
|
||||
assertEqual(8, c.count());
|
||||
|
||||
var doc;
|
||||
var texts = [
|
||||
"big. Really big. He moment. Magrathea! - insisted Arthur, - I do you can sense no further because it doesn't fit properly. In my the denies faith, and the atmosphere beneath You are not cheap He was was his satchel. He throughout Magrathea. - He pushed a tore the ecstatic crowd. Trillian sat down the time, the existence is it? And he said, - What they don't want this airtight hatchway. - it's we you shooting people would represent their Poet Master Grunthos is in his mind.",
|
||||
"Ultimo cadere chi sedete uso chiuso voluto ora. Scotendosi portartela meraviglia ore eguagliare incessante allegrezza per. Pensava maestro pungeva un le tornano ah perduta. Fianco bearmi storia soffio prende udi poteva una. Cammino fascino elisire orecchi pollici mio cui sai sul. Chi egli sino sei dita ben. Audace agonie groppa afa vai ultima dentro scossa sii. Alcuni mia blocco cerchi eterno andare pagine poi. Ed migliore di sommesso oh ai angoscia vorresti.",
|
||||
|
|
|
@ -253,7 +253,6 @@ function routingSuiteSingle () {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function routingSuiteBundle () {
|
||||
var errors = internal.errors;
|
||||
var cn = "_routing";
|
||||
|
||||
return {
|
||||
|
@ -357,7 +356,6 @@ function routingSuiteBundle () {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function routingSuitePrefix () {
|
||||
var errors = internal.errors;
|
||||
var cn = "_routing";
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue