diff --git a/core/includes/common.inc b/core/includes/common.inc index e73924d7ea29c2941f2d35e2865d034473f363a8..9518b27ce5f66cffd5023c15eb9a2689baa5b6b5 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -2494,36 +2494,6 @@ function drupal_clear_js_cache() { file_scan_directory('public://js', '/.*/', array('callback' => 'drupal_delete_file_if_stale')); } -/** - * Converts a PHP variable into its JavaScript equivalent. - * - * We use HTML-safe strings, with several characters escaped. - * - * @see drupal_json_decode() - * - * @ingroup php_wrappers - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal\Component\Serialization\Json::encode(). - */ -function drupal_json_encode($var) { - return Json::encode($var); -} - -/** - * Converts an HTML-safe JSON string into its PHP equivalent. - * - * @see drupal_json_encode() - * - * @ingroup php_wrappers - * - * @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0. - * Use \Drupal\Component\Serialization\Json::decode(). - */ -function drupal_json_decode($var) { - return Json::decode($var); -} - /** * Stores the current page in the cache. *