Skip to content

Commit

Permalink
Removing dead code, and adding another deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 1, 2011
1 parent 1cb0e41 commit 1c417ac
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/Cake/Controller/Component/RequestHandlerComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,6 @@ class RequestHandlerComponent extends Component {
*/
function __construct(ComponentCollection $collection, $settings = array()) {
$this->addInputType('xml', array(array($this, '_convertXml')));
$this->__acceptTypes = explode(',', env('HTTP_ACCEPT'));

foreach ($this->__acceptTypes as $i => $type) {
if (strpos($type, ';')) {
$type = explode(';', $type);
$this->__acceptTypes[$i] = $type[0];
}
}
parent::__construct($collection, $settings);
}

Expand Down Expand Up @@ -362,6 +354,7 @@ public function getAjaxVersion() {
* @param mixed $type The Content-type or array of Content-types assigned to the name,
* i.e. "text/html", or "application/xml"
* @return void
* @deprecated use `$this->response->type()` instead.
*/
public function setContent($name, $type = null) {
$this->response->type(array($name => $type));
Expand Down

0 comments on commit 1c417ac

Please sign in to comment.