From e2a239e885815e0570ea777999e80fd58d1bf473 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 7 Jul 2014 14:54:31 +0100 Subject: [PATCH] Issue #2297533 by longwave | marcingy: Remove drupal_check_memory_limit function. --- core/includes/bootstrap.inc | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 2fce118fc3b3..8d0989836c50 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. * -- GitLab