Updating branch refs/heads/master
to e9d01e10bc78771c5f3bcac9437dd73af9e7ee09 (commit)
from ab36680d472c1113dd824339686836f634790e0d (commit)
commit e9d01e10bc78771c5f3bcac9437dd73af9e7ee09
Author: Harald Judt <[email protected]>
Date: Sat May 11 12:52:05 2013 +0200
Translation: Remove unused function translate_str.
panel-plugin/weather-translate.c | 30 ------------------------------
1 file changed, 30 deletions(-)
diff --git a/panel-plugin/weather-translate.c b/panel-plugin/weather-translate.c
index 89c0310..0c1606d 100644
--- a/panel-plugin/weather-translate.c
+++ b/panel-plugin/weather-translate.c
@@ -45,36 +45,6 @@ static const gchar *moon_phases[] = {
};
#define NUM_MOON_PHASES (sizeof(moon_phases) / sizeof(gchar *))
-static const gchar *
-translate_str(const gchar **loc_strings,
- const gchar *str)
-{
- gint loc_string_len, str_len, i;
-
- if (str == NULL)
- return "?";
-
- str_len = strlen(str);
-
- if (str_len < 1)
- return "?";
-
- for (i = 0; loc_strings[i] != NULL; i++) {
- loc_string_len = strlen(loc_strings[i]);
-
- if (str_len != loc_string_len)
- continue;
-
- if (str[0] != loc_strings[i][0])
- continue;
-
- if (!g_ascii_strncasecmp(loc_strings[i], str, str_len))
- return _(loc_strings[i]);
- }
- return str;
-}
-
-
typedef struct {
gint id;
gchar *symbol;
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits