summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-08-05 13:06:07 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-08-06 09:26:36 +0200
commit8f8e19df2016ef54aa07b301ae91fa808ab15d87 (patch)
tree30130fbbb320f30100a9805bfa3d44c05f396c53
parentc9299f0caa048f22be9bf9b24e1989e4469d5691 (diff)
efl_ui/clock: remove unused functions
these were used for clock module functionality that has since been removed Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9501
-rw-r--r--src/lib/elementary/efl_ui_clock.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/lib/elementary/efl_ui_clock.c b/src/lib/elementary/efl_ui_clock.c
index 6cf3b01305..462f2be615 100644
--- a/src/lib/elementary/efl_ui_clock.c
+++ b/src/lib/elementary/efl_ui_clock.c
@@ -97,26 +97,6 @@ static void _part_name_snprintf(char *buffer, int buffer_size,
97} 97}
98 98
99static void 99static void
100_field_value_set(struct tm *tim, Efl_Ui_Clock_Type field_type, int val)
101{
102 if (field_type >= (CLOCK_FIELD_COUNT - 1)) return;
103
104 int *timearr[]= { &tim->tm_year, &tim->tm_mon, &tim->tm_mday, &tim->tm_hour,
105 &tim->tm_min, &tim->tm_sec, &tim->tm_wday };
106 *timearr[field_type] = val;
107}
108
109static int
110_field_value_get(struct tm *tim, Efl_Ui_Clock_Type field_type)
111{
112 if (field_type >= (CLOCK_FIELD_COUNT - 1)) return -1;
113
114 int *timearr[]= { &tim->tm_year, &tim->tm_mon, &tim->tm_mday, &tim->tm_hour,
115 &tim->tm_min, &tim->tm_sec, &tim->tm_wday };
116 return (*timearr[field_type]);
117}
118
119static void
120_ampm_clicked_cb(void *data, const Efl_Event *event EINA_UNUSED) 100_ampm_clicked_cb(void *data, const Efl_Event *event EINA_UNUSED)
121{ 101{
122 struct tm curr_time; 102 struct tm curr_time;
@@ -749,47 +729,6 @@ _apply_range_restrictions(struct tm *tim)
749} 729}
750 730
751static void 731static void
752_field_limit_get(Evas_Object *obj,
753 Efl_Ui_Clock_Type field_type,
754 int *range_min,
755 int *range_max)
756{
757 int min, max, max_days;
758 Clock_Field *field;
759 unsigned int idx;
760
761 if (field_type > EFL_UI_CLOCK_TYPE_DAY) return;
762
763 EFL_UI_CLOCK_DATA_GET(obj, sd);
764
765 field = sd->field_list + field_type;
766
767 min = field->min;
768 max = field->max;
769
770 CLOCK_TM_ARRAY(curr_timearr, &sd->curr_time);
771 CLOCK_TM_ARRAY(min_timearr, &sd->min_limit);
772 CLOCK_TM_ARRAY(max_timearr, &sd->max_limit);
773
774 for (idx = 0; idx < field->type; idx++)
775 if (*curr_timearr[idx] > *min_timearr[idx]) break;
776 if ((idx == field_type) && (min < *min_timearr[field_type]))
777 min = *min_timearr[field_type];
778 if (field_type == EFL_UI_CLOCK_TYPE_DATE)
779 {
780 max_days = _max_days_get(sd->curr_time.tm_year, sd->curr_time.tm_mon);
781 if (max > max_days) max = max_days;
782 }
783 for (idx = 0; idx < field->type; idx++)
784 if (*curr_timearr[idx] < *max_timearr[idx]) break;
785 if ((idx == field_type) && (max > *max_timearr[field_type]))
786 max = *max_timearr[field_type];
787
788 *range_min = min;
789 *range_max = max;
790}
791
792static void
793_field_list_init(Evas_Object *obj) 732_field_list_init(Evas_Object *obj)
794{ 733{
795 Clock_Field *field; 734 Clock_Field *field;