[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs/kcal
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2010-06-03 6:14:54
Message-ID: 20100603061454.070CCAC8C9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1134014 by tokoe:

Remove unused method


 M  +0 -38     calhelper.cpp  
 M  +0 -11     calhelper.h  


--- trunk/KDE/kdepimlibs/kcal/calhelper.cpp #1134013:1134014
@@ -97,41 +97,3 @@
   return false;
 }
 
-bool CalHelper::hasMyWritableEventsFolders( const QString &family )
-{
-  QString myfamily = family;
-  if ( family.isEmpty() ) {
-    myfamily = "calendar";
-  }
-
-  CalendarResourceManager manager( myfamily );
-  manager.readConfig();
-
-  CalendarResourceManager::ActiveIterator it;
-  for ( it=manager.activeBegin(); it != manager.activeEnd(); ++it ) {
-    if ( (*it)->readOnly() ) {
-      continue;
-    }
-
-    const QStringList subResources = (*it)->subresources();
-    if ( subResources.isEmpty() ) {
-      return true;
-    }
-
-    QStringList::ConstIterator subIt;
-    for ( subIt=subResources.begin(); subIt != subResources.end(); ++subIt ) {
-      if ( !(*it)->subresourceActive( (*subIt) ) ) {
-        continue;
-      }
-      if ( (*it)->type() == "imap" || (*it)->type() == "kolab" ) {
-        if ( (*it)->subresourceType( ( *subIt ) ) == "todo" ||
-             (*it)->subresourceType( ( *subIt ) ) == "journal" ||
-             !(*subIt).contains( "/.INBOX.directory/" ) ) {
-          continue;
-        }
-      }
-      return true;
-    }
-  }
-  return false;
-}
--- trunk/KDE/kdepimlibs/kcal/calhelper.h #1134013:1134014
@@ -93,17 +93,6 @@
     @since 4.4
   */
   KCAL_EXPORT_DEPRECATED bool usingGroupware( Calendar *calendar );
-
-  /**
-    Determines if the Calendar has any writable folders with Events content
-    that are owned by me.
-    @param family is the resource family name or "calendar" if empty.
-
-    @return true if the any such writable folders are found; false otherwise.
-    @since 4.5
-  */
-  //AK_REVIEW: remove and port the calling code to Akonadi based classes (tokoe)
-  KCAL_EXPORT bool hasMyWritableEventsFolders( const QString &family );
 }
 
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic