summaryrefslogtreecommitdiffstats
path: root/korganizer/kohelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kohelper.cpp')
-rw-r--r--korganizer/kohelper.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/korganizer/kohelper.cpp b/korganizer/kohelper.cpp
index 827279fe4..3b7bd8776 100644
--- a/korganizer/kohelper.cpp
+++ b/korganizer/kohelper.cpp
@@ -62,23 +62,3 @@ TQColor KOHelper::resourceColor( KCal::Calendar*calendar, KCal::Incidence*incide
}
return resourceColor;
}
-
-TQString KOHelper::resourceLabel(KCal::Calendar * calendar, KCal::Incidence * incidence)
-{
- KCal::CalendarResources *calendarResource = dynamic_cast<KCal::CalendarResources*>( calendar );
- if ( !calendarResource || ! incidence )
- return TQString();
-
- KCal::ResourceCalendar *resourceCalendar = calendarResource->resource( incidence );
- if( resourceCalendar ) {
- if ( !resourceCalendar->subresources().isEmpty() ) {
- TQString subRes = resourceCalendar->subresourceIdentifier( incidence );
- if ( subRes.isEmpty() )
- return resourceCalendar->resourceName();
- return resourceCalendar->labelForSubresource( subRes );
- }
- return resourceCalendar->resourceName();
- }
-
- return TQString();
-}