Skip to content

Commit

Permalink
Removed unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
diversario committed Jul 27, 2013
1 parent b567675 commit 3b788ce
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
}

0 comments on commit 3b788ce

Please sign in to comment.