From 9823ceadf12009019b9b8cddf1dcf7d3e2127e69 Mon Sep 17 00:00:00 2001 From: kurund Date: Sat, 8 Feb 2014 11:58:43 -0800 Subject: [PATCH] CRM-14181 fixes, deleted unused getEnums() ---------------------------------------- * CRM-14181: migrate enums to varchar in schema for all tables http://issues.civicrm.org/jira/browse/CRM-14181 --- xml/templates/dao.tpl | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/xml/templates/dao.tpl b/xml/templates/dao.tpl index 270e7ca494..2956d9add2 100644 --- a/xml/templates/dao.tpl +++ b/xml/templates/dao.tpl @@ -358,21 +358,6 @@ class {$table.className} extends CRM_Core_DAO {ldelim} {rdelim} {if $table.hasEnum} - /** - * returns an array containing the enum fields of the {$table.name} table - * - * @return array (reference) the array of enum fields - */ - static function &getEnums() {ldelim} - static $enums = array( - {foreach from=$table.fields item=field} - {if $field.crmType == 'CRM_Utils_Type::T_ENUM'} - '{$field.name}', - {/if} - {/foreach} - ); - return $enums; - {rdelim} /** * returns a ts()-translated enum value for display purposes -- 2.25.1