summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-07-03 17:52:04 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-07-08 16:06:42 +0200
commit61f39eef49a93c266b217ec5a49dd12579046c8b (patch)
tree3f624336cd76c9b776960eeb511a315a6bf27073 /src/scripts
parent2bfa55582cb2286dced2b97be6b80d96ae8f5a91 (diff)
eolian: remove API to get freefunc of type
This is not supported anymore. For now, the syntax is kept around because of broken C++ tests, but afterwards it will also be removed.
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/pyolian/eolian.py4
-rw-r--r--src/scripts/pyolian/eolian_lib.py4
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py3
3 files changed, 0 insertions, 11 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index d5c99a1990..c287b57c35 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -1044,10 +1044,6 @@ class Type(Object):
1044 return "<eolian.Type '{0.name}', type={0.type!s}>".format(self) 1044 return "<eolian.Type '{0.name}', type={0.type!s}>".format(self)
1045 1045
1046 @cached_property 1046 @cached_property
1047 def free_func(self):
1048 return _str_to_py(lib.eolian_type_free_func_get(self))
1049
1050 @cached_property
1051 def type(self): 1047 def type(self):
1052 return Eolian_Type_Type(lib.eolian_type_type_get(self)) 1048 return Eolian_Type_Type(lib.eolian_type_type_get(self))
1053 1049
diff --git a/src/scripts/pyolian/eolian_lib.py b/src/scripts/pyolian/eolian_lib.py
index d8ee7f04d9..b9ba5f27fa 100644
--- a/src/scripts/pyolian/eolian_lib.py
+++ b/src/scripts/pyolian/eolian_lib.py
@@ -607,10 +607,6 @@ lib.eolian_type_is_ptr.restype = c_bool
607lib.eolian_type_c_type_get.argtypes = (c_void_p, c_int) 607lib.eolian_type_c_type_get.argtypes = (c_void_p, c_int)
608lib.eolian_type_c_type_get.restype = c_void_p # Stringshare TO BE FREED 608lib.eolian_type_c_type_get.restype = c_void_p # Stringshare TO BE FREED
609 609
610# EAPI Eina_Stringshare *eolian_type_free_func_get(const Eolian_Type *tp);
611lib.eolian_type_free_func_get.argtypes = (c_void_p,)
612lib.eolian_type_free_func_get.restype = c_char_p
613
614### Eolian_Expression ####################################################### 610### Eolian_Expression #######################################################
615 611
616# EAPI Eina_Stringshare *eolian_expression_serialize(const Eolian_Expression *expr); 612# EAPI Eina_Stringshare *eolian_expression_serialize(const Eolian_Expression *expr);
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index de58a1c362..23a618be11 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -566,7 +566,6 @@ class TestEolianType(unittest.TestCase):
566 self.assertFalse(t.is_const) 566 self.assertFalse(t.is_const)
567 self.assertFalse(t.is_ptr) 567 self.assertFalse(t.is_ptr)
568 self.assertEqual(list(t.namespaces), []) 568 self.assertEqual(list(t.namespaces), [])
569 self.assertIsNone(t.free_func)
570 self.assertIsNone(t.class_) 569 self.assertIsNone(t.class_)
571 self.assertEqual(t, t.aliased_base) # TODO find a better test 570 self.assertEqual(t, t.aliased_base) # TODO find a better test
572 571
@@ -586,7 +585,6 @@ class TestEolianType(unittest.TestCase):
586 self.assertEqual(t.builtin_type, eolian.Eolian_Type_Builtin_Type.INVALID) 585 self.assertEqual(t.builtin_type, eolian.Eolian_Type_Builtin_Type.INVALID)
587 self.assertEqual(t.file, 'efl_gfx_entity.eo') # TODO is this correct ? 586 self.assertEqual(t.file, 'efl_gfx_entity.eo') # TODO is this correct ?
588 self.assertEqual(list(t.namespaces), ['Eina']) 587 self.assertEqual(list(t.namespaces), ['Eina'])
589 self.assertEqual(t.free_func, 'eina_rectangle_free')
590 self.assertIsNone(t.class_) 588 self.assertIsNone(t.class_)
591 self.assertEqual(t, t.aliased_base) 589 self.assertEqual(t, t.aliased_base)
592 590
@@ -610,7 +608,6 @@ class TestEolianType(unittest.TestCase):
610 self.assertEqual(t.builtin_type, eolian.Eolian_Type_Builtin_Type.INVALID) 608 self.assertEqual(t.builtin_type, eolian.Eolian_Type_Builtin_Type.INVALID)
611 self.assertEqual(t.file, 'efl_content.eo') # TODO is this correct ? 609 self.assertEqual(t.file, 'efl_content.eo') # TODO is this correct ?
612 self.assertEqual(list(t.namespaces), ['Efl', 'Gfx']) 610 self.assertEqual(list(t.namespaces), ['Efl', 'Gfx'])
613 self.assertEqual(t.free_func, 'efl_del')
614 self.assertEqual(t, t.aliased_base) 611 self.assertEqual(t, t.aliased_base)
615 612
616 self.assertEqual(t.c_type_default, 'Efl_Gfx_Entity *') # TODO find a better test 613 self.assertEqual(t.c_type_default, 'Efl_Gfx_Entity *') # TODO find a better test