summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-10-25 15:56:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-10-25 16:50:01 +0900
commit40589a92a012e67003b116cd6c559a264b42bc87 (patch)
tree557318b7e8a1ea3fb68e5fa720d16c6c464f43bf
parentc1094da0f40ae59addf83d448308d9a1080e4392 (diff)
calendar: Remove unused code
-rw-r--r--src/lib/elementary/elm_calendar.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/lib/elementary/elm_calendar.c b/src/lib/elementary/elm_calendar.c
index 337d85bfc6..a96b44db52 100644
--- a/src/lib/elementary/elm_calendar.c
+++ b/src/lib/elementary/elm_calendar.c
@@ -80,52 +80,6 @@ _button_widget_year_dec_start(void *data,
80 Evas_Object *obj EINA_UNUSED, 80 Evas_Object *obj EINA_UNUSED,
81 void *event_info EINA_UNUSED); 81 void *event_info EINA_UNUSED);
82 82
83/* This two functions should be moved in Eina for next release. */
84#if 0
85static Eina_Tmpstr *
86_eina_tmpstr_strftime(const char *format, const struct tm *tm)
87{
88 const size_t flen = strlen(format);
89 size_t buflen = 16; // An arbitrary starting size
90 char *buf = NULL;
91
92 do {
93 char *tmp;
94 size_t len;
95
96 tmp = realloc(buf, buflen * sizeof(char));
97 if (!tmp) goto on_error;
98 buf = tmp;
99
100 len = strftime(buf, buflen, format, tm);
101 // Check if we have the expected result and return it.
102 if ((len > 0 && len < buflen) || (len == 0 && flen == 0))
103 {
104 Eina_Tmpstr *r;
105
106 r = eina_tmpstr_add_length(buf, len + 1);
107 free(buf);
108 return r;
109 }
110
111 /* Possibly buf overflowed - try again with a bigger buffer */
112 buflen <<= 1; // multiply buffer size by 2
113 } while (buflen < 128 * flen);
114
115 on_error:
116 free(buf);
117 return NULL;
118}
119
120static char *
121_eina_tmpstr_steal(Eina_Tmpstr *s)
122{
123 char *r = s ? strdup(s) : NULL;
124 eina_tmpstr_del(s);
125 return r;
126}
127#endif
128
129static Eina_Bool _key_action_activate(Evas_Object *obj, const char *params); 83static Eina_Bool _key_action_activate(Evas_Object *obj, const char *params);
130 84
131static const Elm_Action key_actions[] = { 85static const Elm_Action key_actions[] = {