From 265689c92fcbad1183949c5ad7df487e5418d404 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Tue, 24 Apr 2012 14:37:21 -0400 Subject: [PATCH] Remove unused function, some clean up. --- jsonld.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/jsonld.php b/jsonld.php index 0f6521c..096915e 100644 --- a/jsonld.php +++ b/jsonld.php @@ -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); }