e_hwc_windows: remove dead code 33/271333/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 15 Feb 2022 10:03:36 +0000 (19:03 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 18 Feb 2022 02:16:24 +0000 (11:16 +0900)
Change-Id: Ie40676f0c913994c0e78fc2c6af33a1eea234176

src/bin/e_hwc_windows.c

index 3e18311..a87c444 100644 (file)
@@ -3705,7 +3705,7 @@ e_hwc_windows_target_window_new(E_Hwc *hwc, Eina_Bool is_root_target)
      return NULL;
 
    target_hwc_window = E_OBJECT_ALLOC(E_Hwc_Window_Target, E_HWC_WINDOW_TYPE, _e_hwc_windows_target_window_free);
-   EINA_SAFETY_ON_NULL_GOTO(target_hwc_window, fail);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(target_hwc_window, NULL);
 
    hwc_window = (E_Hwc_Window *)target_hwc_window;
 
@@ -3725,12 +3725,6 @@ e_hwc_windows_target_window_new(E_Hwc *hwc, Eina_Bool is_root_target)
    hwc->hwc_windows = eina_list_append(hwc->hwc_windows, target_hwc_window);
 
    return target_hwc_window;
-
-fail:
-   if (target_hwc_window)
-     e_object_del(E_OBJECT(target_hwc_window));
-
-   return NULL;
 }
 
 EINTERN void