summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-10-24 23:41:59 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-10-24 23:41:59 +0200
commitbd90fff392c0546c0b00b4c8657d59b42ed9c09e (patch)
tree92d0d1921638545e12c1bc258be407da077c6dde
parent88083b0f14ad887d37cac49d66376ffab86e7431 (diff)
eolian: only check for validation where really necessary
-rw-r--r--src/lib/eolian/database_validate.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 36b8c1c476..6635e7501a 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -48,7 +48,7 @@ _validate_docstr(Eina_Stringshare *str, const Eolian_Object *info)
48static Eina_Bool 48static Eina_Bool
49_validate_doc(Eolian_Documentation *doc) 49_validate_doc(Eolian_Documentation *doc)
50{ 50{
51 if (!doc || doc->base.validated) 51 if (!doc)
52 return EINA_TRUE; 52 return EINA_TRUE;
53 53
54 if (!_validate_docstr(doc->summary, &doc->base)) 54 if (!_validate_docstr(doc->summary, &doc->base))
@@ -165,9 +165,6 @@ _validate_type(Eolian_Type *tp)
165{ 165{
166 char buf[256]; 166 char buf[256];
167 167
168 if (tp->base.validated)
169 return EINA_TRUE;
170
171 if (tp->owned && !database_type_is_ownable(tp)) 168 if (tp->owned && !database_type_is_ownable(tp))
172 { 169 {
173 snprintf(buf, sizeof(buf), "type '%s' is not ownable", tp->full_name); 170 snprintf(buf, sizeof(buf), "type '%s' is not ownable", tp->full_name);
@@ -293,9 +290,6 @@ _validate_function(Eolian_Function *func, Eina_Hash *nhash)
293 Eolian_Function_Parameter *param; 290 Eolian_Function_Parameter *param;
294 char buf[512]; 291 char buf[512];
295 292
296 if (func->base.validated)
297 return EINA_TRUE;
298
299 const Eolian_Function *ofunc = eina_hash_find(nhash, func->name); 293 const Eolian_Function *ofunc = eina_hash_find(nhash, func->name);
300 if (ofunc) 294 if (ofunc)
301 { 295 {
@@ -345,9 +339,6 @@ _validate_function(Eolian_Function *func, Eina_Hash *nhash)
345static Eina_Bool 339static Eina_Bool
346_validate_event(Eolian_Event *event) 340_validate_event(Eolian_Event *event)
347{ 341{
348 if (event->base.validated)
349 return EINA_TRUE;
350
351 if (event->type && !_validate_type(event->type)) 342 if (event->type && !_validate_type(event->type))
352 return EINA_FALSE; 343 return EINA_FALSE;
353 344
@@ -360,9 +351,6 @@ _validate_event(Eolian_Event *event)
360static Eina_Bool 351static Eina_Bool
361_validate_implement(Eolian_Implement *impl) 352_validate_implement(Eolian_Implement *impl)
362{ 353{
363 if (impl->base.validated)
364 return EINA_TRUE;
365
366 if (!_validate_doc(impl->common_doc)) 354 if (!_validate_doc(impl->common_doc))
367 return EINA_FALSE; 355 return EINA_FALSE;
368 if (!_validate_doc(impl->get_doc)) 356 if (!_validate_doc(impl->get_doc))