diff --git a/framework/yii/web/Response.php b/framework/yii/web/Response.php index 32a0f859a9..348f562d7d 100644 --- a/framework/yii/web/Response.php +++ b/framework/yii/web/Response.php @@ -184,21 +184,6 @@ class Response extends \yii\base\Response return $this->_headers; } - public function renderJson($data) - { - $this->getHeaders()->set('Content-Type', 'application/json'); - $this->setContent(Json::encode($data)); - $this->send(); - } - - public function renderJsonp($data, $callbackName) - { - $this->getHeaders()->set('Content-Type', 'text/javascript'); - $data = Json::encode($data); - $this->setContent("$callbackName($data);"); - $this->send(); - } - /** * Sends the response to the client. */