# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1687015180 -7200
# Node ID 1aa83a5667f9990f252c83c0c569e7a5522b0986
# Parent  f43d04653bcf0db76f5a1882a4ba824a8e66c839
util.jsonschema: Remove wrapper function

This was to silence some Teal warning that seems to have gone away.

diff -r f43d04653bcf -r 1aa83a5667f9 teal-src/prosody/util/jsonschema.tl
--- a/teal-src/prosody/util/jsonschema.tl	Sat Jun 17 17:17:44 2023 +0200
+++ b/teal-src/prosody/util/jsonschema.tl	Sat Jun 17 17:19:40 2023 +0200
@@ -159,17 +159,10 @@
 	end
 end
 
-local complex_validate : function ( json_schema_object, any, json_schema_object ) : boolean
-
 local function validate (schema : schema_t, data : any, root : json_schema_object) : boolean
 	if schema is boolean then
 		return schema
-	else
-		return complex_validate(schema, data, root)
 	end
-end
-
-function complex_validate (schema : json_schema_object, data : any, root : json_schema_object) : boolean
 
 	if root == nil then
 		root = schema
diff -r f43d04653bcf -r 1aa83a5667f9 util/jsonschema.lua
--- a/util/jsonschema.lua	Sat Jun 17 17:17:44 2023 +0200
+++ b/util/jsonschema.lua	Sat Jun 17 17:19:40 2023 +0200
@@ -43,17 +43,10 @@
 	end
 end
 
-local complex_validate
-
 local function validate(schema, data, root)
 	if type(schema) == "boolean" then
 		return schema
-	else
-		return complex_validate(schema, data, root)
 	end
-end
-
-function complex_validate(schema, data, root)
 
 	if root == nil then
 		root = schema