summaryrefslogtreecommitdiff
path: root/src/lib/evas/main.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-10-11 13:46:36 +0900
committerHermet Park <hermetpark@gmail.com>2018-10-11 13:46:37 +0900
commit27fd6a2eab6021c4859b8fbdfc01a90e1ba4748c (patch)
tree57300a6635d74c3a77b6df125dc793604ce0e136 /src/lib/evas/main.c
parentf51f840b0e0e8f7e0bc290f001dd8c644e533ef6 (diff)
evas: remove redundant internal functions.
Summary: Since efl object is introduced, magic check is no more used. Plus, remove redundant object functions interfaces - type_id, - visual_id, - store - unstore Reviewers: #committers, bu5hm4n Reviewed By: #committers, bu5hm4n Subscribers: bu5hm4n, raster, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7153
Diffstat (limited to 'src/lib/evas/main.c')
-rw-r--r--src/lib/evas/main.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/lib/evas/main.c b/src/lib/evas/main.c
index c0f7e91312..2c8bccbe94 100644
--- a/src/lib/evas/main.c
+++ b/src/lib/evas/main.c
@@ -56,36 +56,6 @@ evas_debug_input_null(void)
56} 56}
57 57
58void 58void
59evas_debug_magic_null(void)
60{
61 if (!_evas_debug_init)
62 {
63 _evas_debug_init_from_env();
64 }
65 if ((_evas_debug_show == _EVAS_DEBUG_SHOW) ||
66 (_evas_debug_show == _EVAS_DEBUG_DEFAULT))
67 CRI("Input object is zero'ed out (maybe a freed object or zero-filled RAM)!");
68 if (_evas_debug_abort) abort();
69}
70
71void
72evas_debug_magic_wrong(DATA32 expected, DATA32 supplied)
73{
74 if (!_evas_debug_init)
75 {
76 _evas_debug_init_from_env();
77 }
78 if ((_evas_debug_show == _EVAS_DEBUG_SHOW) ||
79 (_evas_debug_show == _EVAS_DEBUG_DEFAULT))
80 CRI("Input object is wrong type\n"
81 " Expected: %08x - %s\n"
82 " Supplied: %08x - %s",
83 expected, evas_debug_magic_string_get(expected),
84 supplied, evas_debug_magic_string_get(supplied));
85 if (_evas_debug_abort) abort();
86}
87
88void
89evas_debug_generic(const char *str) 59evas_debug_generic(const char *str)
90{ 60{
91 if (!_evas_debug_init) 61 if (!_evas_debug_init)
@@ -97,33 +67,3 @@ evas_debug_generic(const char *str)
97 CRI("%s", str); 67 CRI("%s", str);
98 if (_evas_debug_abort) abort(); 68 if (_evas_debug_abort) abort();
99} 69}
100
101const char *
102evas_debug_magic_string_get(DATA32 magic)
103{
104 switch (magic)
105 {
106 case MAGIC_EVAS:
107 return "Evas";
108 case MAGIC_OBJ:
109 return "Evas_Object";
110 case MAGIC_OBJ_RECTANGLE:
111 return "Evas_Object (Rectangle)";
112 case MAGIC_OBJ_LINE:
113 return "Evas_Object (Line)";
114 case MAGIC_OBJ_POLYGON:
115 return "Evas_Object (Polygon)";
116 case MAGIC_OBJ_IMAGE:
117 return "Evas_Object (Image)";
118 case MAGIC_OBJ_TEXT:
119 return "Evas_Object (Text)";
120 case MAGIC_OBJ_SMART:
121 return "Evas_Object (Smart)";
122 case MAGIC_EVAS_GL:
123 return "Evas_GL";
124 case MAGIC_MAP:
125 return "Evas_Map";
126 default:
127 return "<UNKNOWN>";
128 };
129}