diff --git a/kmkernel.cpp b/kmkernel.cpp index 4323e1e06..a493fbbc3 100644 --- a/kmkernel.cpp +++ b/kmkernel.cpp @@ -1702,18 +1702,6 @@ void KMKernel::expireAllFoldersNow() // called by the GUI mFolderCollectionMonitor->expireAllFolders( true /*immediate*/ ); } -Akonadi::Collection KMKernel::findFolderCollectionById( const QString& idString ) -{ - int id = idString.toInt(); - Akonadi::CollectionFetchJob *job = new Akonadi::CollectionFetchJob( Akonadi::Collection(id), Akonadi::CollectionFetchJob::Base, this ); - if ( job->exec() ) { - Akonadi::Collection::List lst = job->collections(); - if ( lst.count() == 1 ) - return lst.at( 0 ); - } - delete job; - return Akonadi::Collection(); -} Akonadi::Collection KMKernel::collectionFromId( const QString &idString ) const { diff --git a/kmkernel.h b/kmkernel.h index c7b76ed0b..cfcfde541 100644 --- a/kmkernel.h +++ b/kmkernel.h @@ -358,12 +358,6 @@ public: */ Akonadi::Collection collectionFromId( const QString &idString ) const; - /** - * @deprecated this uses exec(), don't use. Use collectionFromId() but be aware of the - * restrictions. - */ - Akonadi::Collection KDE_DEPRECATED findFolderCollectionById( const QString& id ); - void raise();