Remove method getActionAttribute
authorBradley Taylor <hello@brad-taylor.co.uk>
Wed, 31 Aug 2022 15:38:38 +0000 (16:38 +0100)
committerBradley Taylor <hello@brad-taylor.co.uk>
Wed, 31 Aug 2022 15:38:38 +0000 (16:38 +0100)
CRM/Core/Selector/Base.php

index e962019ac1d4e774189b4865c5af14d673eba478..2817e7a6df1100933c327f7ffa7ab20a1db27ca3 100644 (file)
@@ -41,27 +41,6 @@ class CRM_Core_Selector_Base {
    */
   protected $_key;
 
-  /**
-   * This function gets the attribute for the action that.
-   * it matches.
-   *
-   * @param string $match the action to match against
-   * @param string $attribute the attribute to return ( name, link, title )
-   *
-   * @return string
-   *   the attribute that matches the action if any
-   */
-  public function getActionAttribute($match, $attribute = 'name') {
-    $links = &$this->links();
-
-    foreach ($link as $action => $item) {
-      if ($match & $action) {
-        return $item[$attribute];
-      }
-    }
-    return NULL;
-  }
-
   /**
    * This is a static virtual function returning reference on links array. Each
    * inherited class must redefine this function