remove_size_from_filename() public method

Remove size from filename (image[-100x100].jpeg).
public remove_size_from_filename ( string $url, boolean $remove_extension = false ) : string
$url string
$remove_extension boolean
return string
 /**
  * URL cache failure.
  *
  * @param string $url
  * @param array  $to_cache
  */
 protected function url_cache_failure($url, &$to_cache)
 {
     $full = $this->as3cf->remove_size_from_filename($url);
     $failure = array('timestamp' => time());
     $to_cache[$full] = $failure;
     if ($full !== $url) {
         $to_cache[$url] = $failure;
     }
 }