From e806a3554fc51dfde32af138f40f4b65a8d71ff3 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Thu, 26 Aug 2021 14:28:18 +0100 Subject: [PATCH] Remove deprecated isDevelopment() function --- CRM/Utils/System.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index 0b6dbb8768..b445a04e09 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1865,32 +1865,6 @@ class CRM_Utils_System { return $sid; } - /** - * @deprecated - * Determine whether this system is deployed using version control. - * - * Normally sites would tune their php error settings to prevent deprecation - * notices appearing on a live site. However, on some systems the user - * does not have control over this setting. Sites with version-controlled - * deployments are unlikely to be in a situation where they cannot alter their - * php error level reporting so we can trust that the are able to set them - * to suppress deprecation / php error level warnings if appropriate but - * in order to phase in deprecation warnings we originally chose not to - * show them on sites who might not be able to set their error_level in - * a way that is appropriate to their site. - * - * @return bool - */ - public static function isDevelopment() { - CRM_Core_Error::deprecatedWarning('isDevelopment() is deprecated. Set your php error_reporting or MySQL settings appropriately instead.'); - static $cache = NULL; - if ($cache === NULL) { - global $civicrm_root; - $cache = file_exists("{$civicrm_root}/.svn") || file_exists("{$civicrm_root}/.git"); - } - return $cache; - } - /** * Is in upgrade mode. * -- 2.25.1