aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-04-09 12:34:37 +0200
committerVolker Krause <[email protected]>2017-04-09 12:34:37 +0200
commit37c014a24aa266bf8eeb0f190165a40e78cfaf33 (patch)
tree72a7ab10cb4fb5dc6ea0d5c7ea57dbba78f53187
parentdd22ac57908d1e39ce7f09ed1084cefe51588594 (diff)
Remove deja vu dead code
Exactly the same unused timezone settings code has been removed from EventViews yesterday.
-rw-r--r--src/kcalprefs.cpp25
-rw-r--r--src/kcalprefs.h1
2 files changed, 0 insertions, 26 deletions
diff --git a/src/kcalprefs.cpp b/src/kcalprefs.cpp
index 117c807..0994fe6 100644
--- a/src/kcalprefs.cpp
+++ b/src/kcalprefs.cpp
@@ -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);
diff --git a/src/kcalprefs.h b/src/kcalprefs.h
index d10c8bc..dab731b 100644
--- a/src/kcalprefs.h
+++ b/src/kcalprefs.h
@@ -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;