From 4948365c1adc7e36ae3d0a541c6044a2eb13c6e2 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Mon, 11 Feb 2013 15:41:46 -0500 Subject: [PATCH] Remove now superfluous flag and step. --- jsonld.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/jsonld.php b/jsonld.php index 79c5498..020d59a 100644 --- a/jsonld.php +++ b/jsonld.php @@ -2630,20 +2630,19 @@ class JsonLdProcessor { * * @param UniqueNamer $namer the UniqueNamer to use. * @param mixed $element the element with blank nodes to rename. - * @param bool $is_id true if the given element is an @id (or @type). * * @return mixed the element. */ - protected function _labelBlankNodes($namer, $element, $is_id=false) { + protected function _labelBlankNodes($namer, $element) { if(is_array($element)) { $length = count($element); for($i = 0; $i < $length; ++$i) { - $element[$i] = $this->_labelBlankNodes($namer, $element[$i], $is_id); + $element[$i] = $this->_labelBlankNodes($namer, $element[$i]); } } else if(self::_isList($element)) { $element->{'@list'} = $this->_labelBlankNodes( - $namer, $element->{'@list'}, $is_id); + $namer, $element->{'@list'}); } else if(is_object($element)) { // rename blank node @@ -2665,10 +2664,6 @@ class JsonLdProcessor { } } } - // rename blank node identifier - else if(is_string($element) && $is_id && strpos($element, '_:') === 0) { - $element = $namer->getName($element); - } return $element; }