aboutsummaryrefslogtreecommitdiff
path: root/src/locations.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-30 18:40:13 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-30 18:40:13 -0600
commit271b0fbf8b14a4f7a8f47de0e3a8751bd50676c3 (patch)
tree0d8f4a2a9e99f61c5d7946653e7dd9eb3aac66d0 /src/locations.cpp
parenta7a09a5ca5012fb1c48f259d2587542316e7349b (diff)
downloadayatana-indicator-datetime-271b0fbf8b14a4f7a8f47de0e3a8751bd50676c3.tar.gz
ayatana-indicator-datetime-271b0fbf8b14a4f7a8f47de0e3a8751bd50676c3.tar.bz2
ayatana-indicator-datetime-271b0fbf8b14a4f7a8f47de0e3a8751bd50676c3.zip
copyediting: remove dead '#if 0''ed code
Diffstat (limited to 'src/locations.cpp')
-rw-r--r--src/locations.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/locations.cpp b/src/locations.cpp
index c59f988..0690acd 100644
--- a/src/locations.cpp
+++ b/src/locations.cpp
@@ -54,29 +54,6 @@ Location::Location(const std::string& zone_, const std::string& name_):
g_time_zone_unref (gzone);
}
-#if 0
-DateTime Location::localtime(const DateTime& reference_point) const
-{
-GDateTime * g_date_time_to_timezone (GDateTime *datetime,
- GTimeZone *tz);
- auto gzone = g_time_zone_new(zone().c_str());
- const auto gtime = reference_point.get();
- auto glocal = g_date_time_new (gzone,
- g_date_time_get_year(gtime),
- g_date_time_get_month(gtime),
- g_date_time_get_day_of_month(gtime),
- g_date_time_get_hour(gtime),
- g_date_time_get_minute(gtime),
- g_date_time_get_seconds(gtime));
- DateTime local(glocal);
- g_date_time_unref(glocal);
- g_message("reference: %zu", (size_t)reference_point.to_unix(), (size_t)local.to_unix());
- //g_date_time_unref(gtime);
- g_time_zone_unref(gzone);
- return local;
-}
-#endif
-
} // namespace datetime
} // namespace indicator
} // namespace unity