Commit e2a239e8 authored by alexpott's avatar alexpott
Browse files

Issue #2297533 by longwave | marcingy: Remove drupal_check_memory_limit function.

parent c072353d
......@@ -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.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment