Skip to content
Snippets Groups Projects
Commit 03d50d24 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2384035 by arpitr, mikemiles86, lokapujya: Remove deprecated function...

Issue #2384035 by arpitr, mikemiles86, lokapujya: Remove deprecated function _update_refresh and its usage
parent 814d1601
No related branches found
No related tags found
No related merge requests found
......@@ -17,18 +17,6 @@ function _update_fetch_data() {
\Drupal::service('update.processor')->fetchData();
}
/**
* Clears out all the available update data and initiates re-fetching.
*
* @see \Drupal\update\UpdateManager::refreshUpdateData()
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::service('update.manager')->refreshUpdateData().
*/
function _update_refresh() {
\Drupal::service('update.manager')->refreshUpdateData();
}
/**
* Performs any notifications that should be done once cron fetches new data.
*
......
......@@ -388,12 +388,9 @@ function update_create_fetch_task($project) {
/**
* Refreshes the release data after loading the necessary include file.
*
* @see _update_refresh()
*/
function update_refresh() {
module_load_include('inc', 'update', 'update.fetch');
_update_refresh();
\Drupal::service('update.manager')->refreshUpdateData();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment