evas: remove unecessary duplicated code. 34/43134/1
authorCedric BAIL <cedric@osg.samsung.com>
Wed, 10 Dec 2014 07:07:12 +0000 (08:07 +0100)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 8 Jul 2015 01:54:44 +0000 (10:54 +0900)
Change-Id: I041c4904f34b1dfad9adc2d28622053d711c0aa1

src/lib/evas/canvas/evas_vg_container.c

index fc008bb..4bedd86 100644 (file)
@@ -11,14 +11,6 @@ _evas_vg_container_eo_base_constructor(Eo *obj, Evas_VG_Container_Data *pd)
    Eo *parent;
 
    eo_do_super(obj, MY_CLASS, eo_constructor());
-
-   eo_do(obj, parent = eo_parent_get());
-   if (!eo_isa(obj, EVAS_VG_CONTAINER_CLASS) &&
-       !eo_isa(obj, EVAS_VG_CLASS))
-     {
-        ERR("Parent must be either an Evas_Object_VG or an Evas_VG_Container.");
-        eo_error_set(obj);
-     }
 }
 
 Eina_Bool