mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	JSON schema: remove unused function
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user