From b2a98df1fcee69ccfbab37774a9bc3152529242f Mon Sep 17 00:00:00 2001 From: lizi Date: Thu, 28 Sep 2017 19:16:20 +0800 Subject: Remove the unused thirdpary code from esr-gui. Change-Id: I9f7d7234df60c7c33abef2efff051ae433e73c8c Issue-ID: AAI-402 Signed-off-by: lizi --- .../node_modules/mongoose/lib/error/cast.js | 60 ---------------------- 1 file changed, 60 deletions(-) delete mode 100644 common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js') diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js b/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js deleted file mode 100644 index f200a9d..0000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/lib/error/cast.js +++ /dev/null @@ -1,60 +0,0 @@ -/*! - * Module dependencies. - */ - -var MongooseError = require('../error.js'); -var util = require('util'); - -/** - * Casting Error constructor. - * - * @param {String} type - * @param {String} value - * @inherits MongooseError - * @api private - */ - -function CastError(type, value, path, reason) { - var stringValue = util.inspect(value); - stringValue = stringValue.replace(/^'/, '"').replace(/'$/, '"'); - if (stringValue.charAt(0) !== '"') { - stringValue = '"' + stringValue + '"'; - } - MongooseError.call(this, 'Cast to ' + type + ' failed for value ' + - stringValue + ' at path "' + path + '"'); - if (Error.captureStackTrace) { - Error.captureStackTrace(this); - } else { - this.stack = new Error().stack; - } - this.stringValue = stringValue; - this.name = 'CastError'; - this.kind = type; - this.value = value; - this.path = path; - this.reason = reason; -} - -/*! - * Inherits from MongooseError. - */ - -CastError.prototype = Object.create(MongooseError.prototype); -CastError.prototype.constructor = MongooseError; - -/*! - * ignore - */ - -CastError.prototype.setModel = function(model) { - this.model = model; - this.message = 'Cast to ' + this.kind + ' failed for value ' + - this.stringValue + ' at path "' + this.path + '"' + ' for model "' + - model.modelName + '"'; -}; - -/*! - * exports - */ - -module.exports = CastError; -- cgit 1.2.3-korg