elm_code_file: remove redundant code 93/199593/2 accepted/tizen/unified/20190218.063900 submit/tizen/20190215.002439
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Wed, 13 Feb 2019 06:47:38 +0000 (15:47 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 14 Feb 2019 22:50:45 +0000 (22:50 +0000)
EINA_SAFETY_ON_NULL_RETURN_VAL(code, NULL) returns NULL if the variable
"code" is NULL.
Therefore, the redundant NULL checking code is removed.

Change-Id: I15f1e02e45d612b62498543e11f234349cfafc9e

src/lib/elementary/elm_code_file.c

index 291df87..610b31a 100644 (file)
@@ -129,8 +129,6 @@ EAPI Elm_Code_File *elm_code_file_open(Elm_Code *code, const char *path)
    Eina_Iterator *it;
    unsigned int lastindex;
 
-   if (!code) return NULL;
-
    ret = elm_code_file_new(code);
    file = eina_file_open(path, EINA_FALSE);
    ret->file = file;