diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 2fce118fc3b3ee2bd87385fea9f2023863ab2809..8d0989836c503b8cbf5b22571079300ad50b424a 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1746,30 +1746,6 @@ function _drupal_shutdown_function() { } } -/** - * Compares the memory required for an operation to the available memory. - * - * @param $required - * The memory required for the operation, expressed as a number of bytes with - * optional SI or IEC binary unit prefix (e.g. 2, 3K, 5MB, 10G, 6GiB, 8bytes, - * 9mbytes). - * @param $memory_limit - * (optional) The memory limit for the operation, expressed as a number of - * bytes with optional SI or IEC binary unit prefix (e.g. 2, 3K, 5MB, 10G, - * 6GiB, 8bytes, 9mbytes). If no value is passed, the current PHP - * memory_limit will be used. Defaults to NULL. - * - * @return - * TRUE if there is sufficient memory to allow the operation, or FALSE - * otherwise. - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal\Component\Utility\Environment::checkMemoryLimit(). - */ -function drupal_check_memory_limit($required, $memory_limit = NULL) { - return Environment::checkMemoryLimit($required, $memory_limit); -} - /** * Get locking layer instance. *