[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-15 22:09:36
Message-ID: 20100515220936.C44A6AC8B5 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1127230 by tokoe:
Remove unused API
M +0 -30 calhelper.cpp
M +0 -30 calhelper.h
--- trunk/KDE/kdepimlibs/kcal/calhelper.cpp #1127229:1127230
@@ -135,33 +135,3 @@
}
return false;
}
-
-ResourceCalendar *CalHelper::incResourceCalendar( Calendar *calendar, Incidence *incidence )
-{
- CalendarResources *cal = dynamic_cast<CalendarResources*>( calendar );
- if ( !cal || !incidence ) {
- return 0;
- }
-
- return cal->resource( incidence );
-}
-
-QPair<ResourceCalendar *, QString> CalHelper::incSubResourceCalendar( Calendar *calendar,
- Incidence *incidence )
-{
- QPair<ResourceCalendar *, QString> p( 0, QString() );
-
- CalendarResources *cal = dynamic_cast<CalendarResources*>( calendar );
- if ( !cal || !incidence ) {
- return p;
- }
-
- ResourceCalendar *res = cal->resource( incidence );
-
- QString subRes;
- if ( res && res->canHaveSubresources() ) {
- subRes = res->subresourceIdentifier( incidence );
- }
- p = qMakePair( res, subRes );
- return p;
-}
--- trunk/KDE/kdepimlibs/kcal/calhelper.h #1127229:1127230
@@ -104,36 +104,6 @@
*/
//AK_REVIEW: remove and port the calling code to Akonadi based classes (tokoe)
KCAL_EXPORT bool hasMyWritableEventsFolders( const QString &family );
-
- /**
- Returns the ResourceCalendar where the Incidence is stored, if any.
- @param calendar is a pointer to a valid Calendar object.
- @param incidence is a pointer to an Incidence object.
-
- @return a pointer to the ResourceCalendar where the Incidence is stored;
- else 0 if none can be found.
- @since 4.5
- */
- //AK_REVIEW: remove (tokoe)
- ResourceCalendar *incResourceCalendar( Calendar *calendar, Incidence *incidence );
-
- /**
- Returns the (ResourceCalendar, SubResourceCalendar) pair where the
- Incidence is stored, if any.
- @param calendar is a pointer to a valid Calendar object.
- @param incidence is a pointer to an Incidence object.
-
- @return a QPair containing a pointer to the Incidence's ResourceCalendar
- in the 'first' element of the QPair and the SubResourceCalendar in the
- 'second' element.
-
- @note many resource types do not support subresources, so the 'second'
- element will be an empty QString in those situations.
- @since 4.5
- */
- //AK_REVIEW: remove (tokoe)
- QPair<ResourceCalendar *, QString> incSubResourceCalendar( Calendar *calendar,
- Incidence *incidence );
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic