Commit 03d50d24 authored by webchick's avatar webchick

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
......@@ -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();
}
/**
......
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