removed some unused local variables

This commit is contained in:
Petr Skoda 2010-09-18 10:59:29 +00:00
parent c983324336
commit 99edf902e8
5 changed files with 0 additions and 17 deletions

View File

@ -481,11 +481,6 @@ class xmldb_field extends xmldb_object {
$notnull = 'false';
}
$o.= ' NOTNULL="' . $notnull . '"';
if ($this->unsigned) {
$unsigned = 'true';
} else {
$unsigned = 'false';
}
if ($this->type == XMLDB_TYPE_INTEGER ||
$this->type == XMLDB_TYPE_NUMBER ||
$this->type == XMLDB_TYPE_FLOAT) {

View File

@ -171,8 +171,6 @@ class xmldb_file extends xmldb_object {
*/
function saveXMLFile() {
$result = true;
$structure =& $this->getStructure();
$result = file_put_contents($this->path, $structure->xmlOutput());

View File

@ -433,8 +433,6 @@ class xmldb_object {
*/
function comma2array($string) {
$arr = array();
$foundquotes = array();
$foundconcats = array();

View File

@ -162,8 +162,6 @@ class xmldb_structure extends xmldb_object {
$table =& $this->getTable($tablename);
if ($table) {
$i = $this->findTableInArray($tablename);
$prevtable = NULL;
$nexttable = NULL;
/// Look for prev and next table
$prevtable =& $this->getTable($table->getPrevious());
$nexttable =& $this->getTable($table->getNext());

View File

@ -344,8 +344,6 @@ class xmldb_table extends xmldb_object {
$field =& $this->getField($fieldname);
if ($field) {
$i = $this->findFieldInArray($fieldname);
$prevfield = NULL;
$nextfield = NULL;
/// Look for prev and next field
$prevfield =& $this->getField($field->getPrevious());
$nextfield =& $this->getField($field->getNext());
@ -375,8 +373,6 @@ class xmldb_table extends xmldb_object {
$key =& $this->getKey($keyname);
if ($key) {
$i = $this->findKeyInArray($keyname);
$prevkey = NULL;
$nextkey = NULL;
/// Look for prev and next key
$prevkey =& $this->getKey($key->getPrevious());
$nextkey =& $this->getKey($key->getNext());
@ -406,8 +402,6 @@ class xmldb_table extends xmldb_object {
$index =& $this->getIndex($indexname);
if ($index) {
$i = $this->findIndexInArray($indexname);
$previndex = NULL;
$nextindex = NULL;
/// Look for prev and next index
$previndex =& $this->getIndex($index->getPrevious());
$nextindex =& $this->getIndex($index->getNext());