Commit 3fb60362 authored by Volker Krause's avatar Volker Krause
Browse files

Remove no longer needed Tz enum test diagnostics

Allows us to drop yet another function we wont need with KI18nLocalData
from the interface.
parent e477021c
Pipeline #89397 passed with stage
in 13 minutes and 58 seconds
......@@ -18,11 +18,6 @@ using namespace KItinerary;
using namespace KItinerary::KnowledgeDb;
namespace KItinerary { namespace KnowledgeDb {
char *toString(Tz tz)
using QTest::toString;
return toString(tzId(tz));
char *toString(CountryId c)
using QTest::toString;
......@@ -15,8 +15,9 @@
using namespace KItinerary;
const char* KnowledgeDb::tzId(KnowledgeDb::Tz tz)
static const char* tzId(KnowledgeDb::Tz tz)
using namespace KnowledgeDb;
return timezone_names + timezone_names_offsets[static_cast<std::underlying_type<KnowledgeDb::Tz>::type>(tz)];
......@@ -17,9 +17,6 @@ class QTimeZone;
namespace KItinerary {
namespace KnowledgeDb {
/** Returns the IANA timezone id for @p tz. */
KITINERARY_EXPORT const char* tzId(Tz tz);
/** Returns the country for a given timezone.
* This is unique for most IANA timezones, but not guaranteed to be so,
* in which case an invalid country is returned.
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