Meta issue: #2205673: [meta] Remove all @deprecated functions marked "remove before 8.0"

Only the function exists, it's usage is removed

[ashish@xeon:/var/www/html/d8/core/includes]$grep _drupal_add_js -r *
common.inc: *   of member items from _drupal_add_css() or _drupal_add_js().
common.inc: * @see _drupal_add_js()
common.inc: *   _drupal_add_js('core/misc/collapse.js');
common.inc: *   _drupal_add_js('core/misc/collapse.js', 'file');
common.inc: *   _drupal_add_js('jQuery(document).ready(function () { alert("Hello!"); });', 'inline');
common.inc: *   _drupal_add_js('jQuery(document).ready(function () { alert("Hello!"); });',
common.inc: *   _drupal_add_js('http://example.com/example.js', 'external');
common.inc: *   _drupal_add_js(array('myModule' => array('key' => 'value')), 'setting');
common.inc: * Calling drupal_static_reset('_drupal_add_js') will clear all JavaScript added
common.inc: * _drupal_add_js() in a hook_page_build() implementation.
common.inc: *       else being the same, JavaScript added by a call to _drupal_add_js() that
common.inc: *       which _drupal_add_js() happened earlier in the page request.
common.inc: *   _drupal_add_js(), and this function call's additions.
common.inc:function _drupal_add_js($data = NULL, $options = NULL) {
common.inc:  // order of the calls to _drupal_add_js().
common.inc: * @see _drupal_add_js()
common.inc: * _drupal_add_js() from hook_js_alter() will not be added to the output
common.inc: * @see _drupal_add_js()
common.inc:    $javascript = _drupal_add_js();
common.inc:      _drupal_add_js($setting, 'setting');
common.inc:      // as to the _drupal_add_js() cache. If $items['settings'] doesn't exist, it's
common.inc: * - _drupal_add_js() is idempotent: calling it twice with the same parameters
common.inc: *     $js = _drupal_add_js();
common.inc: * @see _drupal_add_js()
common.inc: * @see _drupal_add_js()
common.inc:  // The parameters for _drupal_add_js() and _drupal_add_css() require special
[ashish@xeon:/var/www/html/d8/core/includes]$

Comments

rpayanm’s picture

Assigned: Unassigned » rpayanm

Working on this...

rpayanm’s picture

I got a dude, the function drupal_get_js, still use _drupal_add_js, what suppose that I do with this?

Greetings.

joshi.rohit100’s picture

Just try to grep from root, Usage of this are still left.

rpayanm’s picture

Assigned: rpayanm » Unassigned
dawehner’s picture

Only the function exists, it's usage is removed

That is not true, we call it at least once

disasm’s picture

Status: Active » Closed (fixed)

This was removed in: Wed Jan 21 15:21:06 2015 +0000 dd3a597 Issue #2368797 by Wim Leers, dawehner, rteijeiro: Optimize ajaxPageState to keep Drupal 8 sites fast on high-latency networks, prevent CSS/JS aggregation from taking down sites and use HTTP GET for AJAX requests [Nathaniel Catchpole]

Mile23’s picture

Issue tags: -@deprecate +@deprecated