summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-11-11 10:59:54 +0000
committerJérémy Zurcher <jeremy@asynk.ch>2014-01-03 16:22:20 +0100
commit3388bc3414e1c5c9156b72b99bc38943b7e6f9bf (patch)
treeeee420a1299115cba346b817a54f216cea5100d8
parentbb6f3dba8cc898feba0f7892bcd9df1c1536c6d0 (diff)
eo2: get rid of eo2_stack_depth_get.
This is super internal, no reason why it should be exposed. We should just implement automatic stack growth.
-rw-r--r--src/lib/eo/Eo.h2
-rw-r--r--src/lib/eo/eo.c6
2 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index e95aa5df9a..94a6bc7fe5 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -715,8 +715,6 @@ EAPI Eina_Bool _eo2_do_start(const Eo *obj, const Eo_Class *cur_klass, Eina_Bool
715// end of the eo2_do barrier, unref the obj, move the stack pointer 715// end of the eo2_do barrier, unref the obj, move the stack pointer
716EAPI void _eo2_do_end(const Eo **ojb); 716EAPI void _eo2_do_end(const Eo **ojb);
717 717
718EAPI int eo2_call_stack_depth(void);
719
720#define EO2_DO_CLEANUP __attribute__((cleanup(_eo2_do_end))) 718#define EO2_DO_CLEANUP __attribute__((cleanup(_eo2_do_end)))
721 719
722// eo object method calls batch, 720// eo object method calls batch,
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index f2ed9073d6..fc8abc303f 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -317,12 +317,6 @@ _eo2_call_stack_free()
317 free(eo2_call_stack.stack); 317 free(eo2_call_stack.stack);
318} 318}
319 319
320EAPI int
321eo2_call_stack_depth()
322{
323 return (eo2_call_stack.frame_ptr - eo2_call_stack.stack);
324}
325
326static inline Eina_Bool 320static inline Eina_Bool
327_eo2_do_internal(const Eo *eo_id, const Eo_Class *cur_klass_id, 321_eo2_do_internal(const Eo *eo_id, const Eo_Class *cur_klass_id,
328 Eina_Bool is_super, Eo2_Stack_Frame *fptr, Eo2_Stack_Frame *pfptr) 322 Eina_Bool is_super, Eo2_Stack_Frame *fptr, Eo2_Stack_Frame *pfptr)