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) { public static function &init($class, $type = null) {
$_this = ClassRegistry::getInstance(); $_this = ClassRegistry::getInstance();
$id = $false = false; $false = false;
$true = true; $true = true;
if (!$type) { if (!$type) {

View file

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

View file

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

View file

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

View file

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