mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Remove dead code
This commit is contained in:
@@ -434,7 +434,6 @@ class databox_field implements cache_cacheableInterface
|
||||
} else {
|
||||
$meta = $nodes->item(0);
|
||||
|
||||
$current_name = $meta->nodeName;
|
||||
if ($this->name != $meta->nodeName) {
|
||||
$old_meta = $meta;
|
||||
$meta = $dom_struct->createElement($this->name);
|
||||
|
@@ -260,7 +260,7 @@ class databox_status
|
||||
$doc = $databox->get_dom_structure();
|
||||
if ($doc) {
|
||||
$xpath = $databox->get_xpath_structure();
|
||||
$entries = $xpath->query($q = "/record/statbits/bit[@n=" . $bit . "]");
|
||||
$entries = $xpath->query("/record/statbits/bit[@n=" . $bit . "]");
|
||||
|
||||
foreach ($entries as $sbit) {
|
||||
if ($p = $sbit->previousSibling) {
|
||||
|
@@ -231,7 +231,7 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
|
||||
|
||||
foreach ($labels as $code => $label) {
|
||||
$child = $dom_struct->createElement('label');
|
||||
$labelElement = $child->appendChild($dom_struct->createTextNode($label));
|
||||
$child->appendChild($dom_struct->createTextNode($label));
|
||||
$lang = $child->appendChild($dom_struct->createAttribute('lang'));
|
||||
$lang->value = $code;
|
||||
$subdef->appendChild($child);
|
||||
|
Reference in New Issue
Block a user