Commit 8d2c6b85 authored by Volker Krause's avatar Volker Krause
Browse files

Remove long unused and deprecated method

parent 813b239e
......@@ -118,18 +118,6 @@ QVector<QSharedPointer<KCalendarCore::Event>> CalendarHandler::findEvents(KCalen
#endif
}
QSharedPointer<KCalendarCore::Event> CalendarHandler::findEvent(const QSharedPointer<KCalendarCore::Calendar> &calendar, const QVariant &reservation)
{
#if HAVE_KCAL
const auto evs = findEvents(calendar, reservation);
return evs.empty() ? KCalendarCore::Event::Ptr() : evs.at(0);
#else
Q_UNUSED(calendar)
Q_UNUSED(reservation)
return {};
#endif
}
QVector<QVariant> CalendarHandler::reservationsForEvent(const QSharedPointer<KCalendarCore::Event> &event)
{
#if HAVE_KCAL
......
......@@ -35,11 +35,6 @@ namespace CalendarHandler
KITINERARY_EXPORT QVector<QSharedPointer<KCalendarCore::Event>> findEvents(KCalendarCore::Calendar *calendar, const QVariant &reservation);
KITINERARY_EXPORT QVector<QSharedPointer<KCalendarCore::Event>> findEvents(const QSharedPointer<KCalendarCore::Calendar> &calendar, const QVariant &reservation);
/** Attempts to find an event in @p calendar for @p reservation.
* @deprecated since 20.08 use findEvents instead.
*/
KITINERARY_DEPRECATED_EXPORT QSharedPointer<KCalendarCore::Event> findEvent(const QSharedPointer<KCalendarCore::Calendar> &calendar, const QVariant &reservation);
/** Returns the reservations for this event.
* In case of a mult-travler trip, the result contains more than one reservation.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment