From 2833c6b3249fe4fd04b6a529ab9b94c16f61838a Mon Sep 17 00:00:00 2001 From: Sudheesh Singanamalla Date: Thu, 1 Sep 2016 12:27:11 +0530 Subject: [PATCH] Fixes #12509 Removes unused function PMA_addJSVar Signed-off-by: Sudheesh Singanamalla --- libraries/core.lib.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libraries/core.lib.php b/libraries/core.lib.php index a68398a799..257fbc4dda 100644 --- a/libraries/core.lib.php +++ b/libraries/core.lib.php @@ -781,22 +781,6 @@ function PMA_addJSCode($str) $scripts->addCode($str); } -/** - * Adds JS code snippet for variable assignment - * to be displayed by the PMA\libraries\Response class. - * - * @param string $key Name of value to set - * @param mixed $value Value to set, can be either string or array of strings - * @param bool $escape Whether to escape value or keep it as it is - * (for inclusion of js code) - * - * @return void - */ -function PMA_addJSVar($key, $value, $escape = true) -{ - PMA_addJSCode(Sanitize::getJsValue($key, $value, $escape)); -} - /** * Replace some html-unfriendly stuff *