Browse Source

Reducing code related to CakeSchema. Fixes #1477

Maggion Emmanuel 15 years ago
parent
commit
01801a7777

+ 0 - 9
app/config/schema/db_acl.php

@@ -27,15 +27,6 @@
  */
 class DbAclSchema extends CakeSchema {
 
-	public $name = 'DbAcl';
-
-	function before($event = array()) {
-		return true;
-	}
-
-	function after($event = array()) {
-	}
-
 	public $acos = array(
 			'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
 			'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10),

+ 0 - 9
app/config/schema/i18n.php

@@ -27,15 +27,6 @@
  */
 class i18nSchema extends CakeSchema {
 
-	public $name = 'i18n';
-
-	function before($event = array()) {
-		return true;
-	}
-
-	function after($event = array()) {
-	}
-
 	public $i18n = array(
 			'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
 			'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'),

+ 0 - 9
app/config/schema/sessions.php

@@ -27,15 +27,6 @@
  */
 class SessionsSchema extends CakeSchema {
 
-	public $name = 'Sessions';
-
-	function before($event = array()) {
-		return true;
-	}
-
-	function after($event = array()) {
-	}
-
 	public $cake_sessions = array(
 			'id' => array('type'=>'string', 'null' => false, 'key' => 'primary'),
 			'data' => array('type'=>'text', 'null' => true, 'default' => NULL),

+ 0 - 10
cake/libs/model/cake_schema.php

@@ -27,14 +27,6 @@ App::import('Core', 'ConnectionManager');
 class CakeSchema extends Object {
 
 /**
- * Name of the App Schema
- *
- * @var string
- * @access public
- */
-	public $name = null;
-
-/**
  * Path to write location
  *
  * @var string
@@ -337,8 +329,6 @@ class CakeSchema extends Object {
 
 		$out = "class {$name}Schema extends CakeSchema {\n";
 
-		$out .= "\tvar \$name = '{$name}';\n\n";
-
 		if ($path !== $this->path) {
 			$out .= "\tvar \$path = '{$path}';\n\n";
 		}