From: Andrey Kutejko Date: Sat, 27 Jul 2013 07:21:35 +0000 (+0300) Subject: delete dead code X-Git-Tag: 0.6~71 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=cff670e8ad61d25507bd480da0d3c4e40086c70f;p=ipf-legacy-orm.git delete dead code --- diff --git a/ipf/orm/connection.php b/ipf/orm/connection.php index 1107bad..fc163e1 100644 --- a/ipf/orm/connection.php +++ b/ipf/orm/connection.php @@ -17,7 +17,6 @@ abstract class IPF_ORM_Connection extends IPF_ORM_Configurable implements Counta 'import' => false, 'unitOfWork' => false, 'formatter' => false, - 'util' => false, ); protected $properties = array('sql_comments' => array(array('start' => '--', 'end' => "\n", 'escape' => false), diff --git a/ipf/orm/export.php b/ipf/orm/export.php index ecca7b5..7e62f21 100644 --- a/ipf/orm/export.php +++ b/ipf/orm/export.php @@ -218,35 +218,6 @@ class IPF_ORM_Export extends IPF_ORM_Connection_Module return implode(', ', $queryFields); } - public function getDeclaration($name, array $field) - { - - $default = $this->getDefaultFieldDeclaration($field); - - $charset = (isset($field['charset']) && $field['charset']) ? - ' CHARACTER SET ' . $field['charset'] : ''; - - $collation = (isset($field['collate']) && $field['collate']) ? - ' COLLATE ' . $field['collate'] : ''; - - $notnull = (isset($field['notnull']) && $field['notnull']) ? ' NOT NULL' : ''; - - $unique = (isset($field['unique']) && $field['unique']) ? - ' ' . $this->getUniqueFieldDeclaration() : ''; - - $check = (isset($field['check']) && $field['check']) ? - ' ' . $field['check'] : ''; - - $method = 'get' . $field['type'] . 'Declaration'; - - if (method_exists($this->conn->dataDict, $method)) { - return $this->conn->dataDict->$method($name, $field); - } else { - $dec = $this->conn->dataDict->getNativeDeclaration($field); - } - return $this->conn->quoteIdentifier($name, true) . ' ' . $dec . $charset . $default . $notnull . $unique . $check . $collation; - } - public function getDefaultFieldDeclaration($field) { $default = '';