[pim/kcalutils] /: Remove the now unused Stringify::incidenceType* methods
Allen Winter <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 7dc9a00c7bee5b44882eeefcdd5380bb7862eb70 by Allen Winter, on behalf of Volker Krause.
Committed on 05/08/2026 at 19:41.
Pushed by winterz into branch 'master'.
Remove the now unused Stringify::incidenceType* methods
M +0 -5 autotests/teststringify.cpp
M +0 -32 src/stringify.cpp
M +0 -17 src/stringify.h
https://invent.kde.org/pim/kcalutils/-/commit/7dc9a00c7bee5b44882eeefcdd5380bb7862eb70
diff --git a/autotests/teststringify.cpp b/autotests/teststringify.cpp
index ec213efef..d5eb4010b 100644
--- a/autotests/teststringify.cpp
+++ b/autotests/teststringify.cpp
@@ -28,11 +28,6 @@ using namespace KCalUtils;
void StringifyTest::testIncidenceStrings()
{
- QVERIFY(Stringify::incidenceType(Incidence::TypeEvent) == i18n("event"));
- QVERIFY(Stringify::incidenceType(Incidence::TypeTodo) == i18n("to-do"));
- QVERIFY(Stringify::incidenceType(Incidence::TypeJournal) == i18n("journal"));
- QVERIFY(Stringify::incidenceType(Incidence::TypeFreeBusy) == i18n("free/busy"));
-
QVERIFY(Stringify::incidenceSecrecy(Incidence::SecrecyPublic) == i18n("Public"));
QVERIFY(Stringify::incidenceSecrecy(Incidence::SecrecyPrivate) == i18n("Private"));
QVERIFY(Stringify::incidenceSecrecy(Incidence::SecrecyConfidential) == i18n("Confidential"));
diff --git a/src/stringify.cpp b/src/stringify.cpp
index 5c2b02998..22deca00e 100644
--- a/src/stringify.cpp
+++ b/src/stringify.cpp
@@ -33,38 +33,6 @@ using namespace KCalendarCore;
using namespace KCalUtils;
using namespace Stringify;
-QString Stringify::incidenceType(Incidence::IncidenceType type)
-{
- switch (type) {
- case Incidence::TypeEvent:
- return i18nc("@item incidence type is event", "event");
- case Incidence::TypeTodo:
- return i18nc("@item incidence type is to-do/task", "to-do");
- case Incidence::TypeJournal:
- return i18nc("@item incidence type is journal", "journal");
- case Incidence::TypeFreeBusy:
- return i18nc("@item incidence type is freebusy", "free/busy");
- default:
- return QString();
- }
-}
-
-QString Stringify::incidenceTypeCaps(Incidence::IncidenceType type)
-{
- switch (type) {
- case Incidence::TypeEvent:
- return i18nc("@item incidence type is Event (capitalized)", "Event");
- case Incidence::TypeTodo:
- return i18nc("@item incidence type is To-do/Task (capitalized)", "To-do");
- case Incidence::TypeJournal:
- return i18nc("@item incidence type is Journal (capitalized)", "Journal");
- case Incidence::TypeFreeBusy:
- return i18nc("@item incidence type is Freebusy (capitalized)", "Free/Busy");
- default:
- return QString();
- }
-}
-
QString Stringify::incidenceSecrecy(Incidence::Secrecy secrecy)
{
switch (secrecy) {
diff --git a/src/stringify.h b/src/stringify.h
index a03e86d0a..f3a25c8b9 100644
--- a/src/stringify.h
+++ b/src/stringify.h
@@ -40,23 +40,6 @@ namespace KCalUtils
*/
namespace Stringify
{
-/*!
- Returns a translated string representation of an Incidence type, in lower-case.
- \param type the IncidenceType to convert to string
- \return the localized string representation of the incidence type
- \sa incidenceTypeCaps()
-*/
-[[nodiscard]] KCALUTILS_EXPORT QString incidenceType(KCalendarCore::Incidence::IncidenceType type);
-
-/*!
- Returns a translated string representation of an Incidence type, capitalized
- \param type the IncidenceType to convert to string
- \return the localized string representation of the incidence type, in capitals.
- \sa incidenceType()
- \since 6.8
-*/
-[[nodiscard]] KCALUTILS_EXPORT QString incidenceTypeCaps(KCalendarCore::Incidence::IncidenceType type);
-
/*!
Returns the incidence Secrecy as translated string.
\sa incidenceSecrecyList().