Unused variables in Utility removed

This commit is contained in:
evilbloodydemon 2011-04-23 00:00:08 +04:00
parent 3c9cb3b97d
commit f9db4270c6
5 changed files with 2 additions and 6 deletions

View file

@ -93,7 +93,7 @@ class ClassRegistry {
*/
public static function &init($class, $type = null) {
$_this = ClassRegistry::getInstance();
$id = $false = false;
$false = false;
$true = true;
if (!$type) {

View file

@ -274,7 +274,6 @@ class Debugger {
break;
}
$helpCode = null;
if (!empty($_this->helpPath) && preg_match('/.*\[([0-9]+)\]$/', $description, $codes)) {
if (isset($codes[1])) {
$helpID = $codes[1];
@ -418,7 +417,7 @@ class Debugger {
* @link http://book.cakephp.org/view/1191/Using-the-Debugger-Class
*/
public static function excerpt($file, $line, $context = 2) {
$data = $lines = array();
$lines = array();
if (!file_exists($file)) {
return array();
}

View file

@ -415,7 +415,6 @@ class Set {
$matches[] = $context;
continue;
}
$match = false;
if ($token === '@*' && is_array($context['item'])) {
$matches[] = array(
'trace' => array_merge($context['trace'], (array)$key),

View file

@ -33,7 +33,6 @@ class String {
*/
public static function uuid() {
$node = env('SERVER_ADDR');
$pid = null;
if (strpos($node, ':') !== false) {
if (substr_count($node, '::')) {

View file

@ -194,7 +194,6 @@ class Xml {
$value = '';
}
$isNamespace = strpos($key, 'xmlns:');
$nsUri = null;
if ($isNamespace !== false) {
$node->setAttributeNS('http://www.w3.org/2000/xmlns/', $key, $value);
continue;