Remove dead code.

The list of paths is now output on the default error page, we don't need
to make an educated guess here anymore.
This commit is contained in:
mark_story 2014-06-18 09:26:38 -04:00
parent fecc687f81
commit 31956c2abb

View file

@ -1008,17 +1008,6 @@ class View extends Object {
} }
} }
} }
$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)); throw new MissingViewException(array('file' => $name . $this->ext));
} }