Remove check type code. 24/212524/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.015056 accepted/tizen/5.5/unified/mobile/hotfix/20201027.075235 accepted/tizen/5.5/unified/wearable/hotfix/20201027.110308 accepted/tizen/unified/20190823.092357 submit/tizen/20190822.101652 submit/tizen_5.5/20191031.000005 submit/tizen_5.5_mobile_hotfix/20201026.185105 submit/tizen_5.5_wearable_hotfix/20201026.184305 tizen_5.5.m2_release
authorsungrae jo <seongrae.jo@samsung.com>
Thu, 22 Aug 2019 08:38:51 +0000 (17:38 +0900)
committersungrae jo <seongrae.jo@samsung.com>
Thu, 22 Aug 2019 09:56:07 +0000 (18:56 +0900)
Change-Id: I2d672047e71512d802730b82be970e56de0963a3
Signed-off-by: sungrae jo <seongrae.jo@samsung.com>
src/vc_elm.c

index 69ab635..39b4f82 100644 (file)
@@ -499,7 +499,6 @@ int vc_elm_destroy(vc_elm_h vc_elm)
 {
        vc_elm_s *handler = NULL;
        Eina_List *list = NULL;
-       int type = 0;
        if (0 != __vc_elm_get_feature_enabled()) {
                return VC_ELM_ERROR_NOT_SUPPORTED;
        }
@@ -512,12 +511,6 @@ int vc_elm_destroy(vc_elm_h vc_elm)
                return VC_ELM_ERROR_INVALID_PARAMETER;
        }
        handler = (vc_elm_s *)vc_elm;
-       type = handler->type;
-       if (!((VC_ELM_TYPE_EVAS_OBJECT == type) || (VC_ELM_TYPE_ITEM == type))) {
-               VC_ELM_LOG_ERR("Invalid type detected!"); //LCOV_EXCL_LINE
-               return VC_ELM_ERROR_INVALID_PARAMETER;
-       }
-
        list = eina_list_data_find_list(g_handlers_list, handler);
        if (NULL == list) {
                VC_ELM_LOG_ERR("Bad handler pointer detected!"); //LCOV_EXCL_LINE