]> git.andy128k.dev Git - ipf-legacy-orm.git/commitdiff
delete dead code
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jul 2013 07:21:35 +0000 (10:21 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 27 Jul 2013 07:21:35 +0000 (10:21 +0300)
ipf/orm/connection.php
ipf/orm/export.php

index 1107baddd57c38ab2d41b707789f1d95fb7f7bd0..fc163e1646f87cf3f6a512452279e074aa9e4f1f 100644 (file)
@@ -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),
index ecca7b5aa0289080f936e38428d3e5e6f5edfe91..7e62f216becb3140a129c35d8a1c71f82e0bee1b 100644 (file)
@@ -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 = '';