[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-05-13 13:56:21
Message-ID: 20100513135621.5B3DAAC8B4 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1126278 by tokoe:

Remove unneeded API


 M  +0 -3      calendarresources.cpp  
 M  +1 -31     resourcecalendar.cpp  
 M  +0 -30     resourcecalendar.h  


--- trunk/KDE/kdepimlibs/kcal/calendarresources.cpp #1126277:1126278
@@ -452,9 +452,6 @@
       endChange( incidence );
       return true;
     } else {
-      if ( resource->exception() ) {
-        d->mException = new ErrorFormat( resource->exception()->errorCode() );
-      }
       d->mResourceMap.remove( incidence );
     }
   } else {
--- trunk/KDE/kdepimlibs/kcal/resourcecalendar.cpp #1126277:1126278
@@ -39,8 +39,7 @@
     Private()
       : mResolveConflict( false ),
         mNoReadOnlyOnLoad( false ),
-        mInhibitSave( false ),
-        mException( 0 )
+        mInhibitSave( false )
     {}
     bool mResolveConflict;
     bool mNoReadOnlyOnLoad;
@@ -48,7 +47,6 @@
     bool mReceivedLoadError;
     bool mReceivedSaveError;
     QString mLastError;
-    ErrorFormat *mException;
 };
 //@endcond
 
@@ -65,27 +63,9 @@
 
 ResourceCalendar::~ResourceCalendar()
 {
-  delete d->mException;
   delete d;
 }
 
-void ResourceCalendar::clearException()
-{
-  delete d->mException;
-  d->mException = 0;
-}
-
-void ResourceCalendar::setException( ErrorFormat *exception )
-{
-  delete d->mException;
-  d->mException = exception;
-}
-
-ErrorFormat *ResourceCalendar::exception()
-{
-  return d->mException;
-}
-
 bool ResourceCalendar::isResolveConflictSet() const
 {
   return d->mResolveConflict;
@@ -352,13 +332,3 @@
 {
   return d->mNoReadOnlyOnLoad;
 }
-
-bool ResourceCalendar::subresourceWritable( const QString &resource ) const
-{
-  if ( resource.isEmpty() ) {
-    return !readOnly();
-  } else {
-    return false;
-  }
-}
-
--- trunk/KDE/kdepimlibs/kcal/resourcecalendar.h #1126277:1126278
@@ -58,29 +58,6 @@
     bool isResolveConflictSet() const;
     void setResolveConflict( bool b );
 
-    /**
-      Clears the exception status.
-      @since 4.5
-    */
-    //AK_REVIEW: check whether it is needed
-    void clearException();
-
-    /**
-      Set exception for this object. This is used by the functions of this
-      class to report errors.
-      @since 4.5
-    */
-    //AK_REVIEW: check whether it is needed
-    void setException( ErrorFormat *error );
-
-    /**
-      Returns an exception, if there is any, containing information about the
-      last error that occurred.
-      @since 4.5
-    */
-    //AK_REVIEW: check whether it is needed
-    ErrorFormat *exception();
-
     virtual void writeConfig( KConfigGroup &group );
 
     /**
@@ -468,13 +445,6 @@
     virtual bool subresourceActive( const QString &resource ) const;
 
     /**
-      Is this subresource writable or not?
-      @since 4.5
-    */
-    //AK_REVIEW: remove, its BIC
-    virtual bool subresourceWritable( const QString &subresource ) const;
-
-    /**
       What is the label for this subresource?
      */
     virtual QString labelForSubresource( const QString &resource ) const;
[prev in list] [next in list] [prev in thread] [next in thread] 

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