diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-07-31 09:59:15 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-07-31 09:59:15 +0200 |
commit | 6d5cea0ab1ba0612b2ae5ccdb51637dddc31e340 (patch) | |
tree | 0413a6eb3ed0b00600c82586d7fe6dd4d5a7a70d | |
parent | f017ff486bc8b16a6f41c2aee9787efd852ae6c6 (diff) | |
download | efl-6d5cea0ab1ba0612b2ae5ccdb51637dddc31e340.tar.gz |
remove EO2_OP_FUNC_VIRTUAL
a pure virtual function is an EO2_OP_FUNC
with NULL as private function implementation pointer
-rw-r--r-- | src/lib/eo/Eo.h | 2 | ||||
-rw-r--r-- | src/lib/eo/eo.c | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index 944238e32e..8c8780cfa4 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -680,13 +680,11 @@ typedef struct _Eo2_Op_Call_Data // OP ID of an overriding function #define EO2_OP_OVERRIDE ((Eo_Op) -1) -#define EO2_OP_VIRTUAL ((Eo_Op) -2) #define EO2_OP_FUNC(_private, _api, _doc) {_private, _api, EO_NOOP, EO_OP_TYPE_REGULAR, _doc} #define EO2_OP_CLASS_FUNC(_private, _api, _doc) {_private, _api, EO_NOOP, EO_OP_TYPE_CLASS, _doc} #define EO2_OP_FUNC_OVERRIDE(_private, _api) {_private, _api, EO2_OP_OVERRIDE, EO_OP_TYPE_REGULAR, NULL} #define EO2_OP_CLASS_FUNC_OVERRIDE(_private, _api) {_private, _api, EO2_OP_OVERRIDE, EO_OP_TYPE_CLASS, NULL} -#define EO2_OP_FUNC_VIRTUAL(_api, _doc) {NULL, _api, EO2_OP_VIRTUAL, EO_OP_TYPE_REGULAR, _doc} #define EO2_OP_SENTINEL { NULL, NULL, 0, EO_OP_TYPE_INVALID, NULL} // returns the OP id corresponding to the given api_func diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 4bca8b7b5a..d8cf9b1042 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -568,11 +568,6 @@ _eo2_class_funcs_set(_Eo_Class *klass) op_desc->op = op_id; op_id++; } - else if (op_desc->op == EO2_OP_VIRTUAL) - { - op_desc->op = op_id; - op_id++; - } else if (op_desc->op == EO2_OP_OVERRIDE) { if (klass->parent == NULL) |