[pim/kcalutils] src: Remove unused methods from KCalUtils::Stringify

Volker Krause <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a15baecf4bf9fd64630a71c658e7be9d44c8f0f2 by Volker Krause.
Committed on 27/07/2026 at 15:54.
Pushed by vkrause into branch 'master'.

Remove unused methods from KCalUtils::Stringify

M  +0    -22   src/stringify.cpp
M  +0    -13   src/stringify.h

https://invent.kde.org/pim/kcalutils/-/commit/a15baecf4bf9fd64630a71c658e7be9d44c8f0f2

diff --git a/src/stringify.cpp b/src/stringify.cpp
index f461bf264..e7becd2e0 100644
--- a/src/stringify.cpp
+++ b/src/stringify.cpp
@@ -64,10 +64,6 @@ QString Stringify::incidenceTypeCaps(Incidence::IncidenceType type)
         return QString();
     }
 }
-QString Stringify::todoCompletedDateTime(const Todo::Ptr &todo, bool shortfmt)
-{
-    return QLocale().toString(todo->completed(), (shortfmt ? QLocale::ShortFormat : QLocale::LongFormat));
-}
 
 QString Stringify::incidenceSecrecy(Incidence::Secrecy secrecy)
 {
@@ -257,24 +253,6 @@ QString Stringify::errorMessage(const Exception &exception)
     return message;
 }
 
-QString Stringify::scheduleMessageStatus(ScheduleMessage::Status status)
-{
-    switch (status) {
-    case ScheduleMessage::PublishNew:
-        return i18nc("@item this is a new scheduling message", "New Scheduling Message");
-    case ScheduleMessage::PublishUpdate:
-        return i18nc("@item this is an update to an existing scheduling message", "Updated Scheduling Message");
-    case ScheduleMessage::Obsolete:
-        return i18nc("@item obsolete status", "Obsolete");
-    case ScheduleMessage::RequestNew:
-        return i18nc("@item this is a request for a new scheduling message", "New Scheduling Message Request");
-    case ScheduleMessage::RequestUpdate:
-        return i18nc("@item this is a request for an update to an existing scheduling message", "Updated Scheduling Message Request");
-    default:
-        return i18nc("@item unknown status", "Unknown Status: %1", int(status));
-    }
-}
-
 QString Stringify::tzUTCOffsetStr(const QTimeZone &tz)
 {
     int const currentOffset = tz.offsetFromUtc(QDateTime::currentDateTimeUtc());
diff --git a/src/stringify.h b/src/stringify.h
index c3d5d8fc3..cc61363c1 100644
--- a/src/stringify.h
+++ b/src/stringify.h
@@ -81,19 +81,6 @@ namespace Stringify
   \return the localized string representation of the incidence status
 */
 [[nodiscard]] KCALUTILS_EXPORT QString incidenceStatus(const KCalendarCore::Incidence::Ptr &incidence);
-/*!
-  Get a translated string representation of a ScheduleMessage status.
-  \param status the ScheduleMessage::Status to convert to string
-  \return the localized string representation of the schedule message status
-*/
-[[nodiscard]] KCALUTILS_EXPORT QString scheduleMessageStatus(KCalendarCore::ScheduleMessage::Status status);
-
-/*!
-  Returns string containing the date/time when the to-do was completed,
-  formatted according to the user's locale settings.
-  \a shortfmt If true, use a short date format; else use a long format.
-*/
-[[nodiscard]] KCALUTILS_EXPORT QString todoCompletedDateTime(const KCalendarCore::Todo::Ptr &todo, bool shortfmt = false);
 
 [[nodiscard]] KCALUTILS_EXPORT QString attendeeRole(KCalendarCore::Attendee::Role role);
 /*!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.