summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-07-31 09:59:15 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-09-17 22:37:00 +0200
commit50bbd969203706b499e2782d41c45c94156a40e6 (patch)
treef83871edc81143a123f59645cc0c6fcddc292b72
parenta06b65369d55af0cc35d7e129499123a524bd3a9 (diff)
downloadefl-50bbd969203706b499e2782d41c45c94156a40e6.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.h2
-rw-r--r--src/lib/eo/eo.c5
2 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index b54bd1c7f9..354c4b3853 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -694,13 +694,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 5276a61825..4d7995f121 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -569,11 +569,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)