From 4cdd7978cf5699ccab1f4ec6d03907cb66f1e166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Wed, 29 Aug 2018 13:40:37 -0400 Subject: [PATCH] JSON schema: remove unused function --- nodes/core/parsers/70-JSON.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nodes/core/parsers/70-JSON.js b/nodes/core/parsers/70-JSON.js index bc5d0269a..4e1e51e47 100644 --- a/nodes/core/parsers/70-JSON.js +++ b/nodes/core/parsers/70-JSON.js @@ -31,15 +31,6 @@ module.exports = function(RED) { var node = this; - this.validateMessage = function(msg) { - if (this.compiledSchema(msg[node.property])) { - node.send(msg); - } else { - msg.schemaError = this.compiledSchema.errors; - node.error(`${RED._("json.errors.schema-error")}: ${ajv.errorsText(this.compiledSchema.errors)}`, msg); - } - } - this.on("input", function(msg) { var validate = false; if (msg.schema) {