/**
* Sets the default controller based on the info set in the RouteCollection.
*
* @deprecated This was an unnecessary method, so it is no longer used.
*
* @return void
*/
protected function setDefaultController() { if (empty($this->controller
)) { throw RouterException::
forMissingDefaultRoute();
} sscanf($this->controller, '%[^/]/%s',
$class,
$this->method
);
if (!
is_file(APPPATH . 'Controllers/' .
$this->directory .
ucfirst($class) . '.php'
)) { return;
} $this->controller =
ucfirst($class);
log_message('info', 'Used the default controller.'
);
}