Commit 37c014a2 authored by Volker Krause's avatar Volker Krause

Remove deja vu dead code

Exactly the same unused timezone settings code has been removed from
EventViews yesterday.
parent dd22ac57
......@@ -55,7 +55,6 @@ public:
{
}
KDateTime::Spec mTimeSpec;
Akonadi::Collection::Id mDefaultCalendarId;
TagCache mTagCache;
......@@ -100,8 +99,6 @@ void KCalPrefs::usrSetDefaults()
}
fillMailDefaults();
setTimeZoneDefault();
KConfigSkeleton::usrSetDefaults();
}
......@@ -110,11 +107,6 @@ KDateTime::Spec KCalPrefs::timeSpec()
return KSystemTimeZones::local();
}
void KCalPrefs::setTimeSpec(const KDateTime::Spec &spec)
{
d->mTimeSpec = spec;
}
Akonadi::Collection::Id KCalPrefs::defaultCalendarId() const
{
return d->mDefaultCalendarId;
......@@ -125,19 +117,6 @@ void KCalPrefs::setDefaultCalendarId(Akonadi::Collection::Id id)
d->mDefaultCalendarId = id;
}
void KCalPrefs::setTimeZoneDefault()
{
KTimeZone zone = KSystemTimeZones::local();
if (!zone.isValid()) {
qCCritical(CALENDARSUPPORT_LOG) << "KSystemTimeZones::local() return 0";
return;
}
qCDebug(CALENDARSUPPORT_LOG) << "----- time zone:" << zone.name();
d->mTimeSpec = zone;
}
void KCalPrefs::fillMailDefaults()
{
userEmailItem()->swapDefault();
......@@ -157,10 +136,6 @@ void KCalPrefs::usrRead()
{
KConfigGroup generalConfig(config(), "General");
if (!d->mTimeSpec.isValid()) {
setTimeZoneDefault();
}
KConfigGroup defaultCalendarConfig(config(), "Calendar");
d->mDefaultCalendarId = defaultCalendarConfig.readEntry("Default Calendar", -1);
......
......@@ -73,7 +73,6 @@ public:
/// Return true if the given email belongs to the user
bool thatIsMe(const QString &email);
void setTimeSpec(const KDateTime::Spec &spec);
KDateTime::Spec timeSpec();
QString mailTransport() const;
......
Markdown is supported
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