Issue #2384035 by arpitr, mikemiles86, lokapujya: Remove deprecated function _update_refresh and its usage

8.0.x
webchick 2015-02-25 22:18:20 -08:00
parent 814d160178
commit 03d50d2489
2 changed files with 1 additions and 16 deletions

View File

@ -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.
*

View File

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