Commit a0718108 authored by alexpott's avatar alexpott
Browse files

Issue #2294251 by j2r | marcingy: Remove file_usage from file module.

parent 1594e522
...@@ -123,18 +123,6 @@ function file_load($fid, $reset = FALSE) { ...@@ -123,18 +123,6 @@ function file_load($fid, $reset = FALSE) {
return File::load($fid); return File::load($fid);
} }
/**
* Returns the file usage service.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::service('file.usage').
*
* @return \Drupal\file\FileUsage\FileUsageInterface.
*/
function file_usage() {
return \Drupal::service('file.usage');
}
/** /**
* Copies a file to a new location and adds a file record to the database. * Copies a file to a new location and adds a file record to the database.
* *
......
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