aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-14 13:46:05 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-14 13:46:05 -0500
commiteee67421e45b110332463f2e4193211f73930e32 (patch)
tree1332503120959ce60a11e4f32a66f6149120d9d4 /src
parentad29f45ba080370690bc7a3a55ed98c796494a71 (diff)
downloadayatana-indicator-datetime-eee67421e45b110332463f2e4193211f73930e32.tar.gz
ayatana-indicator-datetime-eee67421e45b110332463f2e4193211f73930e32.tar.bz2
ayatana-indicator-datetime-eee67421e45b110332463f2e4193211f73930e32.zip
in utils.c, remove unused function read_timezone()
Diffstat (limited to 'src')
-rw-r--r--src/utils.c24
-rw-r--r--src/utils.h1
2 files changed, 0 insertions, 25 deletions
diff --git a/src/utils.c b/src/utils.c
index f5aecd6..07a2022 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -117,30 +117,6 @@ get_current_zone_name (const gchar * location)
return rv;
}
-gchar *
-read_timezone ()
-{
- GError * error = NULL;
- gchar * tempzone = NULL;
- if (!g_file_get_contents(TIMEZONE_FILE, &tempzone, NULL, &error)) {
- g_warning("Unable to read timezone file '" TIMEZONE_FILE "': %s", error->message);
- g_error_free(error);
- return NULL;
- }
-
- /* This shouldn't happen, so let's make it a big boom! */
- g_return_val_if_fail(tempzone != NULL, NULL);
-
- /* Note: this really makes sense as strstrip works in place
- so we end up with something a little odd without the dup
- so we have the dup to make sure everything is as expected
- for everyone else. */
- gchar * rv = g_strdup(g_strstrip(tempzone));
- g_free(tempzone);
-
- return rv;
-}
-
/* Translate msg according to the locale specified by LC_TIME */
static char *
T_(const char *msg)
diff --git a/src/utils.h b/src/utils.h
index 788d516..c2bc0c5 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -30,7 +30,6 @@ G_BEGIN_DECLS
gboolean is_locale_12h (void);
void split_settings_location (const gchar * location, gchar ** zone, gchar ** name);
gchar * get_current_zone_name (const gchar * location);
-gchar * read_timezone ();
gchar * generate_format_string_full (gboolean show_day, gboolean show_date);
gchar * generate_format_string_at_time (GDateTime * time);