Remove unused function, some clean up.
This commit is contained in:
parent
75bda64cfb
commit
265689c92f
1 changed files with 1 additions and 17 deletions
18
jsonld.php
18
jsonld.php
|
@ -118,22 +118,6 @@ function jsonld_to_rdf($input, $options=array()) {
|
||||||
return $p->toRdf($input, $options);
|
return $p->toRdf($input, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Processes a local context, resolving any URLs as necessary, and returns a
|
|
||||||
* new active context.
|
|
||||||
*
|
|
||||||
* @param active_ctx the current active context.
|
|
||||||
* @param local_ctx the local context to process.
|
|
||||||
* @param [options] the options to use:
|
|
||||||
* [resolver(url, callback(err, jsonCtx))] the URL resolver to use.
|
|
||||||
*
|
|
||||||
* @return the new active context.
|
|
||||||
*/
|
|
||||||
function jsonld_process_context($active_ctx, $local_ctx, $options=array()) {
|
|
||||||
$p = new JsonLdProcessor();
|
|
||||||
return $p->processContext($active_ctx, $local_ctx, $options);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A JSON-LD processor.
|
* A JSON-LD processor.
|
||||||
*/
|
*/
|
||||||
|
@ -196,7 +180,7 @@ class JsonLdProcessor {
|
||||||
}
|
}
|
||||||
catch(JsonLdException $e) {
|
catch(JsonLdException $e) {
|
||||||
throw new JsonLdException(
|
throw new JsonLdException(
|
||||||
'Could not merge context before compaction.',
|
'Could not process context before compaction.',
|
||||||
'jsonld.CompactError', null, $e);
|
'jsonld.CompactError', null, $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue