summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-18 17:21:12 -0700
committerBrion Vibber <brion@pobox.com>2010-10-18 17:21:12 -0700
commita923ef971912e7d095cd4cae335abb9095930ecb (patch)
treef6177c4c226c58a50d9c3effa99b656ffca62fce /lib/schema.php
parente44f1fe989f95e915229664891053bddb7aef356 (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.php17
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.