diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-18 17:21:12 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-18 17:21:12 -0700 |
commit | a923ef971912e7d095cd4cae335abb9095930ecb (patch) | |
tree | f6177c4c226c58a50d9c3effa99b656ffca62fce /lib/schema.php | |
parent | e44f1fe989f95e915229664891053bddb7aef356 (diff) |
Drop reverseTypeMap from schemas; we're now doing the forward-mapping on the canonical def before comparing
Diffstat (limited to 'lib/schema.php')
-rw-r--r-- | lib/schema.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/schema.php b/lib/schema.php index 16fb50225..9f2899ba8 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -773,23 +773,6 @@ class Schema } /** - * Map a native type back to an independent type + size - * - * @param string $type - * @return array ($type, $size) -- $size may be null - */ - protected function reverseMapType($type) - { - $sizes = array('tiny', 'small', 'medium', 'big'); - foreach ($sizes as $prefix) { - if (substr($type, 0, strlen($prefix)) == $prefix) { - return array(substr($type, strlen($prefix)), $prefix); - } - } - return array($type, null); - } - - /** * Convert an old-style set of ColumnDef objects into the current * Drupal-style schema definition array, for backwards compatibility * with plugins written for 0.9.x. |