Remove this function, it uses exec() and any code use it.

svn path=/trunk/KDE/kdepim/kmail/; revision=1159055
wilder-work
Laurent Montel 16 years ago
parent b0834044a5
commit 2fd3d0a762
  1. 12
      kmkernel.cpp
  2. 6
      kmkernel.h

@ -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
{

@ -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();

Loading…
Cancel
Save