Skip to content

Commit a3324e5

Browse files
committed
Remove unused schema.compile() function
This was redundant to schema.Compile()
1 parent b236077 commit a3324e5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

check/checkdata/schema/schema.go

-7
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,6 @@ func unmarshalJSONFile(filePath *paths.Path) interface{} {
122122
return dataInterface
123123
}
124124

125-
// compile compiles the parent schema and returns the resulting jsonschema.Schema object.
126-
func compile(compiler *jsonschema.Compiler, schemaFilename string, schemasPath *paths.Path) (*jsonschema.Schema, error) {
127-
schemaPath := schemasPath.Join(schemaFilename)
128-
schemaURI := pathURI(schemaPath)
129-
return compiler.Compile(schemaURI)
130-
}
131-
132125
// pathURI returns the URI representation of the path argument.
133126
func pathURI(path *paths.Path) string {
134127
absolutePath, err := path.Abs()

0 commit comments

Comments
 (0)