Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
Scrutinizer was helpful in finding these.
  • Loading branch information
markstory committed Aug 3, 2015
1 parent f2bd73d commit 363e3fd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/Cache/Engine/RedisEngine.php
Expand Up @@ -92,11 +92,6 @@ public function init(array $config = [])
protected function _connect()
{
try {
$server = $this->_config['host'];
if (empty($server) && !empty($this->_config['server'])) {
$server = $this->_config['server'];
}

This comment has been minimized.

Copy link
@josegonzalez

josegonzalez Aug 22, 2015

Member

Ah crap, this was supposed to be used below instead of $this->_config['server']

This comment has been minimized.

Copy link
@markstory

markstory Aug 22, 2015

Author Member

Interesting.

$this->_Redis = new \Redis();
if (!empty($this->settings['unix_socket'])) {
$return = $this->_Redis->connect($this->settings['unix_socket']);
Expand Down
1 change: 0 additions & 1 deletion src/Controller/Component/RequestHandlerComponent.php
Expand Up @@ -535,7 +535,6 @@ public function prefers($type = null)
public function renderAs(Controller $controller, $type, array $options = [])
{
$defaults = ['charset' => 'UTF-8'];
$view = null;
$viewClassMap = $this->viewClassMap();

if (Configure::read('App.encoding') !== null) {
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Expression/TupleComparison.php
Expand Up @@ -92,7 +92,7 @@ protected function _stringifyValues($generator)

$type = $this->_type;
$multiType = is_array($type);
$isMulti = $this->isMulti($i, $type);
$isMulti = $this->isMulti();
$type = $multiType ? $type : str_replace('[]', '', $type);
$type = $type ?: null;

Expand Down

0 comments on commit 363e3fd

Please sign in to comment.