Remove unused function, some clean up.

This commit is contained in:
Dave Longley 2012-04-24 14:37:21 -04:00
parent 75bda64cfb
commit 265689c92f

View file

@ -118,22 +118,6 @@ function jsonld_to_rdf($input, $options=array()) {
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.
*/
@ -196,7 +180,7 @@ class JsonLdProcessor {
}
catch(JsonLdException $e) {
throw new JsonLdException(
'Could not merge context before compaction.',
'Could not process context before compaction.',
'jsonld.CompactError', null, $e);
}