e_policy: remove logically dead code
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 5 Dec 2017 01:56:03 +0000 (10:56 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 6 Dec 2017 02:08:38 +0000 (11:08 +0900)
Change-Id: I4b531fc04e8436241929e224c238ec32210c3c25

src/bin/e_policy.c

index b837ede9efc41af3ddcbd515b802206b63a8f7f8..556b963c620725e9ccbec5e4cbfd197e7fdbde34 100644 (file)
@@ -1550,7 +1550,6 @@ e_policy_client_maximize(E_Client *ec)
    E_OBJECT_CHECK_RETURN(ec, EINA_FALSE);
    E_OBJECT_TYPE_CHECK_RETURN(ec, E_CLIENT_TYPE, EINA_FALSE);
 
-   if (EINA_UNLIKELY(!ec))  return EINA_FALSE;
    if (e_object_is_del(E_OBJECT(ec))) return EINA_FALSE;
 
    if ((e_policy_client_is_keyboard(ec)) ||
@@ -1773,9 +1772,6 @@ e_policy_client_is_floating(E_Client *ec)
    E_OBJECT_CHECK_RETURN(ec, EINA_FALSE);
    E_OBJECT_TYPE_CHECK_RETURN(ec, E_CLIENT_TYPE, EINA_FALSE);
 
-   if (EINA_UNLIKELY(!ec))
-     return EINA_FALSE;
-
    return ec->floating;
 }