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) {
|
function main (argv) {
|
||||||
var argc = argv.length;
|
|
||||||
var databases = internal.db._listDatabases();
|
var databases = internal.db._listDatabases();
|
||||||
var i;
|
var i;
|
||||||
|
|
||||||
|
|
|
@ -142,9 +142,6 @@
|
||||||
delete SYS_DEFINE_ACTION;
|
delete SYS_DEFINE_ACTION;
|
||||||
|
|
||||||
internal.actionLoaded = function() {
|
internal.actionLoaded = function() {
|
||||||
var modules;
|
|
||||||
var i;
|
|
||||||
|
|
||||||
console.debug("actions loaded");
|
console.debug("actions loaded");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -633,8 +633,6 @@ function defineRoutePart (route, subwhere, parts, pos, constraint, callback) {
|
||||||
var part;
|
var part;
|
||||||
var subsub;
|
var subsub;
|
||||||
var ok;
|
var ok;
|
||||||
var p1;
|
|
||||||
var p2;
|
|
||||||
|
|
||||||
part = parts[pos];
|
part = parts[pos];
|
||||||
if (part === undefined) {
|
if (part === undefined) {
|
||||||
|
@ -763,8 +761,6 @@ function defineRoute (route, where, url, callback) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var methods;
|
var methods;
|
||||||
var branch;
|
|
||||||
var i;
|
|
||||||
var j;
|
var j;
|
||||||
|
|
||||||
methods = intersectMethods(url.methods, callback.methods);
|
methods = intersectMethods(url.methods, callback.methods);
|
||||||
|
@ -1220,7 +1216,6 @@ function reloadRouting () {
|
||||||
var r = routes[key];
|
var r = routes[key];
|
||||||
|
|
||||||
for (i = 0; i < r.length; ++i) {
|
for (i = 0; i < r.length; ++i) {
|
||||||
var route = r[i];
|
|
||||||
var context = { appModule: appModule };
|
var context = { appModule: appModule };
|
||||||
|
|
||||||
installRoute(RoutingCache[arangodb.db._name()][key],
|
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
|
// clone the route object so the barrier for the collection can be removed soon
|
||||||
var route = routes[j];
|
var route = routes[j];
|
||||||
var r;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (route.hasOwnProperty('routes') || route.hasOwnProperty('middleware')) {
|
if (route.hasOwnProperty('routes') || route.hasOwnProperty('middleware')) {
|
||||||
|
@ -1882,7 +1876,6 @@ function pathHandler (req, res, options, next) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var filename;
|
var filename;
|
||||||
var result;
|
|
||||||
|
|
||||||
filename = fs.join(options.path, fs.join.apply(fs.join, req.suffix));
|
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) {
|
function RELATIONAL_IN (lhs, rhs) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var leftWeight = TYPEWEIGHT(lhs);
|
|
||||||
var rightWeight = TYPEWEIGHT(rhs);
|
var rightWeight = TYPEWEIGHT(rhs);
|
||||||
|
|
||||||
if (rightWeight !== TYPEWEIGHT_LIST) {
|
if (rightWeight !== TYPEWEIGHT_LIST) {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
/// @author Copyright 2013, triAGENS GmbH, Cologne, Germany
|
/// @author Copyright 2013, triAGENS GmbH, Cologne, Germany
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
var arangodb = require("org/arangodb"),
|
var require("org/arangodb"),
|
||||||
db = require("org/arangodb").db,
|
db = require("org/arangodb").db,
|
||||||
crypto = require("org/arangodb/crypto"),
|
crypto = require("org/arangodb/crypto"),
|
||||||
internal = require("internal"),
|
internal = require("internal"),
|
||||||
|
|
|
@ -390,8 +390,7 @@ extend(RequestContext.prototype, {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
onlyIfAuthenticated: function (code, reason) {
|
onlyIfAuthenticated: function (code, reason) {
|
||||||
'use strict';
|
'use strict';
|
||||||
var handler = this.route.action.callback,
|
var check;
|
||||||
check;
|
|
||||||
|
|
||||||
check = function (req) {
|
check = function (req) {
|
||||||
if (!(req.user && req.currentSession)) {
|
if (!(req.user && req.currentSession)) {
|
||||||
|
|
|
@ -36,7 +36,6 @@ var getRawQueryResults = helper.getRawQueryResults;
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
function ahuacatlComplexTestSuite () {
|
function ahuacatlComplexTestSuite () {
|
||||||
var errors = internal.errors;
|
|
||||||
var numbers = null;
|
var numbers = null;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -303,7 +303,6 @@ function dumpTestSuite () {
|
||||||
assertEqual("primary", c.getIndexes()[0].type);
|
assertEqual("primary", c.getIndexes()[0].type);
|
||||||
assertEqual(8, c.count());
|
assertEqual(8, c.count());
|
||||||
|
|
||||||
var doc;
|
|
||||||
var texts = [
|
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.",
|
"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.",
|
"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 () {
|
function routingSuiteBundle () {
|
||||||
var errors = internal.errors;
|
|
||||||
var cn = "_routing";
|
var cn = "_routing";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -357,7 +356,6 @@ function routingSuiteBundle () {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
function routingSuitePrefix () {
|
function routingSuitePrefix () {
|
||||||
var errors = internal.errors;
|
|
||||||
var cn = "_routing";
|
var cn = "_routing";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue