Merge pull request #21483 from jmcclelland/leaky-honoree-variable
[civicrm-core.git] / ext / authx / authx.civix.php
index 35e570d55e16c92c255f869ada630a3b46fd316d..6a25c05c5c0e5bdf915e3c77cc0f0855ab433d62 100644 (file)
@@ -204,24 +204,6 @@ function _authx_civix_upgrader() {
   }
 }
 
-/**
- * Glob wrapper which is guaranteed to return an array.
- *
- * The documentation for glob() says, "On some systems it is impossible to
- * distinguish between empty match and an error." Anecdotally, the return
- * result for an empty match is sometimes array() and sometimes FALSE.
- * This wrapper provides consistency.
- *
- * @link http://php.net/glob
- * @param string $pattern
- *
- * @return array
- */
-function _authx_civix_glob($pattern) {
-  $result = glob($pattern);
-  return is_array($result) ? $result : [];
-}
-
 /**
  * Inserts a navigation menu item at a given place in the hierarchy.
  *