From 77f767bf0e4ad6baa276bcff57eecd995b1a5f32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 24 May 2015 14:48:04 +0200 Subject: [PATCH] Remove deprecated AJAXProxyAction::getData() see 07736a3a5a67f1ecb4c8bfbf60bef56fdc0b3ad1 --- .../lib/action/AJAXProxyAction.class.php | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php index b6d53ee24e..b55791c008 100644 --- a/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXProxyAction.class.php @@ -75,27 +75,6 @@ class AJAXProxyAction extends AJAXInvokeAction { // execute action $this->response = $this->objectAction->executeAction(); - if (isset($this->response['returnValues'])) { - $this->response['returnValues'] = $this->getData($this->response['returnValues']); - } - } - - /** - * @deprecated This function makes it too easy to accidentally expose private information. - * It will be removed in Community Framework 2.2. - * Consider using \JsonSerializable beginning with Community Framework 2.2. - */ - protected function getData($response) { - if ($response instanceof IStorableObject) { - return $response->getData(); - } - if (is_array($response)) { - foreach ($response as &$object) { - $object = $this->getData($object); - } - unset($object); - } - return $response; } /** -- 2.20.1