Commit f421f1f9 authored by alexpott's avatar alexpott

Issue #2295715 by joshi.rohit100: Remove parse_size() function as it is no longer used.

parent 8956ec77
......@@ -541,23 +541,6 @@ function format_plural($count, $singular, $plural, array $args = array(), array
return \Drupal::translation()->formatPlural($count, $singular, $plural, $args, $options);
* Parses a given byte count.
* @param $size
* A size expressed as a number of bytes with optional SI or IEC binary unit
* prefix (e.g. 2, 3K, 5MB, 10G, 6GiB, 8 bytes, 9mbytes).
* @return
* An integer representation of the size in bytes.
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal\Component\Utility\Bytes::toInt().
function parse_size($size) {
return Bytes::toInt($size);
* Generates a string representation for the given byte count.
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