Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
The list of paths is now output on the default error page, we don't need
to make an educated guess here anymore.
  • Loading branch information
markstory committed Jun 18, 2014
1 parent fecc687 commit 31956c2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/Cake/View/View.php
Expand Up @@ -1008,17 +1008,6 @@ protected function _getViewFileName($name = null) {
}
}
}
$defaultPath = $paths[0];

if ($this->plugin) {
$pluginPaths = App::path('plugins');
foreach ($paths as $path) {
if (strpos($path, $pluginPaths[0]) === 0) {
$defaultPath = $path;
break;
}
}
}
throw new MissingViewException(array('file' => $name . $this->ext));
}

Expand Down

0 comments on commit 31956c2

Please sign in to comment.