summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-09-01 13:09:37 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-09-01 14:12:31 +0200
commit0817c49e753d0e6fc24a301bc697a3c669ec2603 (patch)
tree2869d9cec8522723b6f5f50854059ccfa20d4b15
parent5f73d130473e285d9d2a4ae4d61e6ba7ae4c41a2 (diff)
efl: remove unused functions
these are not used, if they are used again in the future, they can be get back via git.
-rw-r--r--src/lib/eina/eina_matrix.c37
-rw-r--r--src/lib/elementary/efl_ui_table.c22
-rw-r--r--src/lib/elementary/efl_ui_textpath.c6
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c44
4 files changed, 0 insertions, 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 @@
62/*============================================================================* 62/*============================================================================*
63 * Local * 63 * Local *
64 *============================================================================*/ 64 *============================================================================*/
65/** @cond internal */
66/*
67 * In the range [-pi pi]
68 * (4/pi)*x - ((4/(pi*pi))*x*abs(x))
69 * http://www.devmaster.net/forums/showthread.php?t=5784
70 */
71#define EXTRA_PRECISION
72static inline double
73 _sin(double x)
74{
75 const double B = 4/M_PI;
76 const double C = -4/(M_PI*M_PI);
77
78 double y = (B * x) + (C * x * fabs(x));
79
80#ifdef EXTRA_PRECISION
81 // const float Q = 0.775;
82 const double P = 0.225;
83
84 y = P * (y * fabs(y) - y) + y; // Q * y + P * y * abs(y)
85#endif
86 return y;
87}
88
89static inline double
90_cos(double x)
91{
92 x += M_PI_2;
93
94 if (x > M_PI) // Original x > pi/2
95 {
96 x -= 2 * M_PI; // Wrap: cos(x) = cos(x - 2 pi)
97 }
98
99 return _sin(x);
100}
101/** @endcond */
102 65
103/*============================================================================* 66/*============================================================================*
104 * API * 67 * 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)
640 free(it); 640 free(it);
641} 641}
642 642
643static inline Eina_Iterator *
644_efl_ui_table_item_iterator_create(Eo *obj, Eina_Inlist *list)
645{
646 Table_Item_Iterator *it;
647
648 it = calloc(1, sizeof(*it));
649 if (!it) return NULL;
650
651 EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR);
652
653 it->object = obj;
654 it->cur = list;
655
656 it->iterator.version = EINA_ITERATOR_VERSION;
657 it->iterator.next = FUNC_ITERATOR_NEXT(_efl_ui_table_item_iterator_next);
658 it->iterator.get_container = FUNC_ITERATOR_GET_CONTAINER(
659 _efl_ui_table_item_iterator_get_container);
660 it->iterator.free = FUNC_ITERATOR_FREE(_efl_ui_table_item_iterator_free);
661
662 return &it->iterator;
663}
664
665EOLIAN static Eina_Iterator * 643EOLIAN static Eina_Iterator *
666_efl_ui_table_efl_container_content_iterate(Eo *obj, Efl_Ui_Table_Data *pd) 644_efl_ui_table_efl_container_content_iterate(Eo *obj, Efl_Ui_Table_Data *pd)
667{ 645{
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)
85 return 180 * rad / M_PI; 85 return 180 * rad / M_PI;
86} 86}
87 87
88static inline double
89_deg_to_rad(double angle)
90{
91 return angle / 180 * M_PI;
92}
93
94static void 88static void
95_segment_draw(Efl_Ui_Textpath_Data *pd, int slice_no, double dt, double dist, 89_segment_draw(Efl_Ui_Textpath_Data *pd, int slice_no, double dt, double dist,
96 int w1, int cmp, Evas_Map *map, Eina_Bezier bezier, 90 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
@@ -8475,50 +8475,6 @@ evas_object_textblock_replace_char_get(const Efl_Canvas_Textblock *obj)
8475 8475
8476/** 8476/**
8477 * @internal 8477 * @internal
8478 * Advance p_buff to point after the end of the string. It's used with the
8479 * @ref escaped_strings[] variable.
8480 *
8481 * @param p_buff the pointer to the current string.
8482 */
8483static inline void
8484_escaped_advance_after_end_of_string(const char **p_buf)
8485{
8486 while (**p_buf != 0) (*p_buf)++;
8487 (*p_buf)++;
8488}
8489
8490/**
8491 * @internal
8492 * Advance p_buff to point after the end of the string. It's used with the
8493 * @ref escaped_strings[] variable. Also chec if matches.
8494 * FIXME: doc.
8495 *
8496 * @param p_buff the pointer to the current string.
8497 */
8498static inline int
8499_escaped_is_eq_and_advance(const char *s, const char *s_end,
8500 const char **p_m, const char *m_end)
8501{
8502 Eina_Bool reached_end;
8503 for (;((s < s_end) && (*p_m < m_end)); s++, (*p_m)++)
8504 {
8505 if (*s != **p_m)
8506 {
8507 _escaped_advance_after_end_of_string(p_m);
8508 return 0;
8509 }
8510 }
8511
8512 reached_end = !**p_m;
8513 if (*p_m < m_end)
8514 _escaped_advance_after_end_of_string(p_m);
8515
8516 return ((s == s_end) && reached_end);
8517}
8518
8519
8520/**
8521 * @internal
8522 * 8478 *
8523 * @param s the escape string to search for its index 8479 * @param s the escape string to search for its index
8524 * @param s_len length of s string 8480 * @param s_len length of s string