Removed some debugging code

This commit is contained in:
Jeff Moser
2010-10-03 19:21:55 -04:00
parent 1156c839d4
commit 930444a0f7
8 changed files with 20 additions and 53 deletions

View File

@ -34,15 +34,13 @@ abstract class Factor
{
return count($this->_messages);
}
// DEBUG: make protected
public function &getVariables()
protected function &getVariables()
{
return $this->_variables;
}
// DEBUG: make protected
public function &getMessages()
protected function &getMessages()
{
return $this->_messages;
}
@ -52,12 +50,7 @@ abstract class Factor
{
Guard::argumentIsValidIndex($messageIndex, count($this->_messages), "messageIndex");
$message = &$this->_messages[$messageIndex];
$variable = &$this->_messageToVariableBinding->getValue($message);
// DEBUG
$selfName = (string)$this;
$debugName = (string)$variable;
$debugHash = \spl_object_hash($variable);
$debugValue = $variable->getValue();
$variable = &$this->_messageToVariableBinding->getValue($message);
return $this->updateMessageVariable($message, $variable);
}

View File

@ -19,9 +19,7 @@ class Message
}
public function setValue(&$value)
{
// DEBUG
$selfName = (string)$this;
{
$this->_value = &$value;
}

View File

@ -34,9 +34,7 @@ class ScheduleStep extends Schedule
public function visit($depth = -1, $maxDepth = 0)
{
$currentFactor = &$this->_factor;
// DEBUG
$currentFactorName = (string)$currentFactor;
$currentFactor = &$this->_factor;
$delta = $currentFactor->updateMessageIndex($this->_index);
return $delta;
}

View File

@ -16,18 +16,12 @@ class Variable
public function &getValue()
{
$value = &$this->_value;
// DEBUG
$selfHash = \spl_object_hash($this);
$selfName = (string)$this;
$value = &$this->_value;
return $value;
}
public function setValue(&$value)
{
// DEBUG
$selfName = (string)$this;
$selfHash = \spl_object_hash($this);
{
$this->_value = &$value;
}