some performance optimizations
[toast/confclerk.git] / src / gui / favtabcontainer.cpp
index 80bd6bb..1ad1215 100644 (file)
@@ -10,17 +10,3 @@ void FavTabContainer::loadEvents( const QDate &aDate, const int aConferenceId )
     static_cast<EventModel*>(treeView->model())->loadFavEvents( aDate, aConferenceId );
 }
 
-void FavTabContainer::updateTreeViewModel(int aEventId)
-{
-    Q_UNUSED(aEventId);
-
-    // requires special handling
-    // we need to reload favourites, because some favourite could be deleted
-    //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId);
-    int confId = Conference::activeConference();
-    QDate startDate = Conference::getById(confId).start();
-    QDate endDate = Conference::getById(confId).end();
-    dayNavigator->setDates(startDate, endDate);
-    updateTreeView( Conference::getById(confId).start() );
-}
-