Refactor phone type CRM-12464
[civicrm-core.git] / CRM / Core / PseudoConstant.php
index 42eb63d8525597e2b0dd36089c3a87e24d2da9d0..6bd6d44bc5efe2be04548b5b33969ec5fe01c388 100644 (file)
@@ -280,13 +280,6 @@ class CRM_Core_PseudoConstant {
    */
   private static $mappingType;
 
-  /**
-   * Phone Types
-   * @var array
-   * @static
-   */
-  private static $phoneType;
-
   /**
    * Visibility
    * @var array
@@ -710,26 +703,6 @@ class CRM_Core_PseudoConstant {
     return self::$component;
   }
 
-  /**
-   * Get all phone type
-   * The static array phoneType is returned
-   *
-   * @access public
-   * @static
-   *
-   * @param boolean $all - get All phone type - default is to get
-   * only active ones.
-   *
-   * @return array - array reference of all phone types.
-   *
-   */
-  public static function &phoneType() {
-    if (!self::$phoneType) {
-      self::$phoneType = CRM_Core_OptionGroup::values('phone_type');
-    }
-    return self::$phoneType;
-  }
-
   /**
    * Get all the IM Providers from database.
    *