From 463bebdca5b5d21885e33e864249bdf10051b24d Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Fri, 11 Jul 2014 11:02:57 +0100
Subject: [PATCH] Issue #2300843 by joshi.rohit100: Remove drupal_json_encode()
 and drupal_json_decode() methods as deprecated.

---
 core/includes/common.inc | 30 ------------------------------
 1 file changed, 30 deletions(-)

diff --git a/core/includes/common.inc b/core/includes/common.inc
index e73924d7ea29..9518b27ce5f6 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.
  *
-- 
GitLab