mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
removed some unused local variables
This commit is contained in:
parent
c983324336
commit
99edf902e8
@ -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) {
|
||||
|
@ -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());
|
||||
|
@ -433,8 +433,6 @@ class xmldb_object {
|
||||
*/
|
||||
function comma2array($string) {
|
||||
|
||||
$arr = array();
|
||||
|
||||
$foundquotes = array();
|
||||
$foundconcats = array();
|
||||
|
||||
|
@ -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());
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user