summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-08-01 16:54:00 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-08-01 16:55:31 +0200
commit1c5fa59ee87866ccecfd7529827211e9b3ebf388 (patch)
treed0420c78568d9db2ba9359ebd553db5cf7b07045 /src/lib
parent1bcca58d826a2d8fcd88b529b8e5863c6f54ec47 (diff)
eolian: remove __builtin_free_cb
This has long been unused. If we need to replace this eventually, it should be done correctly.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eolian/Eolian.h3
-rw-r--r--src/lib/eolian/database_type.c11
-rw-r--r--src/lib/eolian/database_validate.c1
-rw-r--r--src/lib/eolian/eo_lexer.h1
4 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 4d743087ed..2c23da328e 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -348,8 +348,7 @@ typedef enum
348 EOLIAN_TYPE_BUILTIN_STRINGSHARE, 348 EOLIAN_TYPE_BUILTIN_STRINGSHARE,
349 EOLIAN_TYPE_BUILTIN_STRBUF, 349 EOLIAN_TYPE_BUILTIN_STRBUF,
350 350
351 EOLIAN_TYPE_BUILTIN_VOID_PTR, 351 EOLIAN_TYPE_BUILTIN_VOID_PTR
352 EOLIAN_TYPE_BUILTIN_FREE_CB
353} Eolian_Type_Builtin_Type; 352} Eolian_Type_Builtin_Type;
354 353
355typedef enum 354typedef enum
diff --git a/src/lib/eolian/database_type.c b/src/lib/eolian/database_type.c
index 66d8a97f62..b0d1ac1bee 100644
--- a/src/lib/eolian/database_type.c
+++ b/src/lib/eolian/database_type.c
@@ -189,17 +189,6 @@ static void
189_atype_to_str(const Eolian_Typedecl *tp, Eina_Strbuf *buf) 189_atype_to_str(const Eolian_Typedecl *tp, Eina_Strbuf *buf)
190{ 190{
191 eina_strbuf_append(buf, "typedef "); 191 eina_strbuf_append(buf, "typedef ");
192
193 if (tp->base_type->type == EOLIAN_TYPE_REGULAR)
194 {
195 if (!strcmp(tp->base_type->base.name, "__builtin_free_cb"))
196 {
197 eina_strbuf_append(buf, "void (*");
198 eina_strbuf_append(buf, tp->base.c_name);
199 eina_strbuf_append(buf, ")(void *data)");
200 return;
201 }
202 }
203 database_type_to_str(tp->base_type, buf, tp->base.c_name, 192 database_type_to_str(tp->base_type, buf, tp->base.c_name,
204 EOLIAN_C_TYPE_DEFAULT); 193 EOLIAN_C_TYPE_DEFAULT);
205} 194}
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index c5945724ef..1ca8240008 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -291,7 +291,6 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
291 { 291 {
292 case KW_void_ptr: 292 case KW_void_ptr:
293 case KW___undefined_type: 293 case KW___undefined_type:
294 case KW___builtin_free_cb:
295 if (vals->stable) 294 if (vals->stable)
296 { 295 {
297 _eo_parser_log(&tp->base, 296 _eo_parser_log(&tp->base,
diff --git a/src/lib/eolian/eo_lexer.h b/src/lib/eolian/eo_lexer.h
index e2ce990304..c70b1c9031 100644
--- a/src/lib/eolian/eo_lexer.h
+++ b/src/lib/eolian/eo_lexer.h
@@ -64,7 +64,6 @@ enum Tokens
64 KW(mstring), KW(string), KW(stringshare), KW(strbuf), \ 64 KW(mstring), KW(string), KW(stringshare), KW(strbuf), \
65 \ 65 \
66 KW(void_ptr), \ 66 KW(void_ptr), \
67 KW(__builtin_free_cb), \
68 KW(function), \ 67 KW(function), \
69 KW(__undefined_type), \ 68 KW(__undefined_type), \
70 \ 69 \