Remove dead code

This commit is contained in:
Romain Neutron
2013-09-04 12:06:48 +02:00
parent c8d415c562
commit dbd06e9091
67 changed files with 63 additions and 378 deletions

View File

@@ -1079,7 +1079,7 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
protected function load_notifications_preferences(Application $app)
{
$notifications = $app['events-manager']->list_notifications_available($this->id);
$notifications = $app['events-manager']->list_notifications_available();
foreach ($notifications as $notification_group => $nots) {
foreach ($nots as $notification) {

View File

@@ -266,8 +266,6 @@ class User_Query implements User_QueryInterface
$sql .= $this->generate_field_constraints('lastModel', $this->templates);
}
$baslist = array();
if (count($this->base_ids) == 0) {
if ($this->bases_restrictions)
throw new Exception('No base available for you, not enough rights');