bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0817c49e753d0e6fc24a301bc697a3c669ec2603
commit 0817c49e753d0e6fc24a301bc697a3c669ec2603 Author: Marcel Hollerbach <m...@marcel-hollerbach.de> Date: Tue Sep 1 13:09:37 2020 +0200 efl: remove unused functions these are not used, if they are used again in the future, they can be get back via git. --- src/lib/eina/eina_matrix.c | 37 ------------------------ src/lib/elementary/efl_ui_table.c | 22 --------------- src/lib/elementary/efl_ui_textpath.c | 6 ---- src/lib/evas/canvas/evas_object_textblock.c | 44 ----------------------------- 4 files changed, 109 deletions(-) diff --git a/src/lib/eina/eina_matrix.c b/src/lib/eina/eina_matrix.c index db3779b8d6..b82bca2e1d 100644 --- a/src/lib/eina/eina_matrix.c +++ b/src/lib/eina/eina_matrix.c @@ -62,43 +62,6 @@ /*============================================================================* * Local * *============================================================================*/ -/** @cond internal */ -/* - * In the range [-pi pi] - * (4/pi)*x - ((4/(pi*pi))*x*abs(x)) - * http://www.devmaster.net/forums/showthread.php?t=5784 - */ -#define EXTRA_PRECISION -static inline double - _sin(double x) -{ - const double B = 4/M_PI; - const double C = -4/(M_PI*M_PI); - - double y = (B * x) + (C * x * fabs(x)); - -#ifdef EXTRA_PRECISION - // const float Q = 0.775; - const double P = 0.225; - - y = P * (y * fabs(y) - y) + y; // Q * y + P * y * abs(y) -#endif - return y; -} - -static inline double -_cos(double x) -{ - x += M_PI_2; - - if (x > M_PI) // Original x > pi/2 - { - x -= 2 * M_PI; // Wrap: cos(x) = cos(x - 2 pi) - } - - return _sin(x); -} -/** @endcond */ /*============================================================================* * API * diff --git a/src/lib/elementary/efl_ui_table.c b/src/lib/elementary/efl_ui_table.c index 861b78ab3a..12b8342c1e 100644 --- a/src/lib/elementary/efl_ui_table.c +++ b/src/lib/elementary/efl_ui_table.c @@ -640,28 +640,6 @@ _efl_ui_table_item_iterator_free(Table_Item_Iterator *it) free(it); } -static inline Eina_Iterator * -_efl_ui_table_item_iterator_create(Eo *obj, Eina_Inlist *list) -{ - Table_Item_Iterator *it; - - it = calloc(1, sizeof(*it)); - if (!it) return NULL; - - EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR); - - it->object = obj; - it->cur = list; - - it->iterator.version = EINA_ITERATOR_VERSION; - it->iterator.next = FUNC_ITERATOR_NEXT(_efl_ui_table_item_iterator_next); - it->iterator.get_container = FUNC_ITERATOR_GET_CONTAINER( - _efl_ui_table_item_iterator_get_container); - it->iterator.free = FUNC_ITERATOR_FREE(_efl_ui_table_item_iterator_free); - - return &it->iterator; -} - EOLIAN static Eina_Iterator * _efl_ui_table_efl_container_content_iterate(Eo *obj, Efl_Ui_Table_Data *pd) { diff --git a/src/lib/elementary/efl_ui_textpath.c b/src/lib/elementary/efl_ui_textpath.c index 539f996108..321cd20568 100644 --- a/src/lib/elementary/efl_ui_textpath.c +++ b/src/lib/elementary/efl_ui_textpath.c @@ -85,12 +85,6 @@ _rad_to_deg(double rad) return 180 * rad / M_PI; } -static inline double -_deg_to_rad(double angle) -{ - return angle / 180 * M_PI; -} - static void _segment_draw(Efl_Ui_Textpath_Data *pd, int slice_no, double dt, double dist, int w1, int cmp, Evas_Map *map, Eina_Bezier bezier, diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 45fc1a0028..c3c1426ea7 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -8473,50 +8473,6 @@ evas_object_textblock_replace_char_get(const Efl_Canvas_Textblock *obj) return o->repch; } -/** - * @internal - * Advance p_buff to point after the end of the string. It's used with the - * @ref escaped_strings[] variable. - * - * @param p_buff the pointer to the current string. - */ -static inline void -_escaped_advance_after_end_of_string(const char **p_buf) -{ - while (**p_buf != 0) (*p_buf)++; - (*p_buf)++; -} - -/** - * @internal - * Advance p_buff to point after the end of the string. It's used with the - * @ref escaped_strings[] variable. Also chec if matches. - * FIXME: doc. - * - * @param p_buff the pointer to the current string. - */ -static inline int -_escaped_is_eq_and_advance(const char *s, const char *s_end, - const char **p_m, const char *m_end) -{ - Eina_Bool reached_end; - for (;((s < s_end) && (*p_m < m_end)); s++, (*p_m)++) - { - if (*s != **p_m) - { - _escaped_advance_after_end_of_string(p_m); - return 0; - } - } - - reached_end = !**p_m; - if (*p_m < m_end) - _escaped_advance_after_end_of_string(p_m); - - return ((s == s_end) && reached_end); -} - - /** * @internal * --