From 3b788ceb30e281c0223b1b401273f7ee7a12e1ad Mon Sep 17 00:00:00 2001 From: "ilya.shaisultanov" Date: Fri, 26 Jul 2013 21:29:30 -0400 Subject: [PATCH] Removed unused function. --- lib/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/index.js b/lib/index.js index 870db3a..3ae62a5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -42,7 +42,7 @@ * @param {Object} schema Schema to use for validation * @return {Array} Array of errors. Empty array indicates no errors. */ -module.exports = function propertyValidation(data, schema) { +module.exports = function (data, schema) { function validate(property, rules, data) { var propertyValue @@ -196,10 +196,4 @@ module.exports = function propertyValidation(data, schema) { } return errors -} - -function makeError(code, message) { - var e = new Error(message || '') - e.code = code - return e } \ No newline at end of file