e_hints: remove the unused funtions 43/293543/2
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 23 May 2023 09:59:09 +0000 (18:59 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 31 May 2023 06:58:03 +0000 (06:58 +0000)
They are not used anymore.

Change-Id: Ia22510670d3a5395fefd2cf943ead53b6c7780fa

src/bin/e_client.c
src/bin/e_comp_object.c
src/bin/e_hints.c
src/bin/e_hints.h

index da148fa..7bfbcb4 100644 (file)
@@ -243,7 +243,7 @@ cleanup:
              if (!warp_client->lock_user_shade)
                e_client_unshade(warp_client, warp_client->shade_dir);
           }
-        
+
         if (!warp_client->lock_focus_out)
           {
              if (e_config->focus_policy_ext != E_FOCUS_EXT_TOP_STACK)
@@ -1918,12 +1918,6 @@ _e_client_resize_end(E_Client *ec)
    ec->resize_mode = E_POINTER_RESIZE_NONE;
    _e_client_action_input_win_del();
 
-   /* If this border was maximized, we need to unset Maximized state or
-    * on restart, E still thinks it's maximized */
-   if (ec->maximized != E_MAXIMIZE_NONE)
-     e_hints_window_maximized_set(ec, ec->maximized & E_MAXIMIZE_HORIZONTAL,
-                                  ec->maximized & E_MAXIMIZE_VERTICAL);
-
    _e_client_hook_call(E_CLIENT_HOOK_RESIZE_END, ec);
 
    if (ec->transformed)
@@ -2934,8 +2928,6 @@ _e_client_eval(E_Client *ec)
           }
 
         /* Recreate state */
-        if (!ec->override)
-          e_hints_window_init(ec);
         if (ec->e.state.centered)
           {
              tx = zx + (zw - ec->w) / 2;
@@ -4766,8 +4758,6 @@ e_client_desk_set(E_Client *ec, E_Desk *desk)
    e_client_comp_hidden_set(ec, (!desk->visible) && (!ec->sticky));
    e_client_zone_set(ec, desk->zone);
 
-   e_hints_window_desktop_set(ec);
-
    if (old_desk)
      {
         ev = E_NEW(E_Event_Client_Desk_Set, 1);
@@ -5784,7 +5774,7 @@ e_client_focused_set(E_Client *ec)
         if (!e_object_is_del(E_OBJECT(ec_unfocus)))
           _e_client_hook_call(E_CLIENT_HOOK_FOCUS_UNSET, ec_unfocus);
         /* only send event here if we're not being deleted */
-        if ((!e_object_is_del(E_OBJECT(ec_unfocus))) && 
+        if ((!e_object_is_del(E_OBJECT(ec_unfocus))) &&
            (e_object_ref_get(E_OBJECT(ec_unfocus)) > 0))
           {
              _e_client_event_simple(ec_unfocus, E_EVENT_CLIENT_FOCUS_OUT);
@@ -5806,7 +5796,6 @@ e_client_focused_set(E_Client *ec)
    if (!focus_track_frozen)
      e_client_focus_latest_set(ec);
 
-   e_hints_active_window_set(ec);
    _e_client_event_simple(ec, E_EVENT_CLIENT_FOCUS_IN);
    if (ec->sticky && ec->desk && (!ec->desk->visible))
      e_client_desk_set(ec, e_desk_current_get(ec->zone));
@@ -5968,8 +5957,6 @@ e_client_shade(E_Client *ec, E_Direction dir)
    if (!e_util_strcmp("borderless", ec->bordername)) return;
    if (!e_comp_object_frame_allowed(ec->frame)) return;
 
-   e_hints_window_shaded_set(ec, 1);
-   e_hints_window_shade_direction_set(ec, dir);
    ec->take_focus = 0;
    ec->shading = 1;
    ec->shade_dir = dir;
@@ -5985,8 +5972,6 @@ e_client_unshade(E_Client *ec, E_Direction dir)
    if ((!ec->shaded) || (ec->shading))
      return;
 
-   e_hints_window_shaded_set(ec, 0);
-   e_hints_window_shade_direction_set(ec, dir);
    ec->shading = 1;
    ec->shade_dir = 0;
 
@@ -6093,21 +6078,12 @@ e_client_maximize(E_Client *ec, E_Maximize max)
      }
 
    ec->saved.zone = ec->zone->num;
-   e_hints_window_size_set(ec);
 
    _e_client_maximize(ec, max);
 
    ec->maximized = max;
    ec->changes.need_unmaximize = 0;
 
-   if ((ec->maximized & E_MAXIMIZE_DIRECTION) > E_MAXIMIZE_BOTH)
-     /* left/right maximize */
-     e_hints_window_maximized_set(ec, 0,
-                                  ((ec->maximized & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_LEFT) ||
-                                  ((ec->maximized & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_RIGHT));
-   else
-     e_hints_window_maximized_set(ec, ec->maximized & E_MAXIMIZE_HORIZONTAL,
-                                  ec->maximized & E_MAXIMIZE_VERTICAL);
    evas_object_smart_callback_call(ec->frame, "maximize_done", NULL);
 }
 
@@ -6160,7 +6136,6 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
                                                      ec->saved.y + ec->zone->y,
                                                      ec->saved.w, ec->saved.h);
              ec->saved.x = ec->saved.y = ec->saved.w = ec->saved.h = 0;
-             e_hints_window_size_unset(ec);
           }
         else
           {
@@ -6211,7 +6186,6 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
                        e_client_pos_set(ec, x, y);
                        e_policy_visibility_client_defer_move(ec);
                     }
-                  e_hints_window_size_unset(ec);
                }
              else
                {
@@ -6224,16 +6198,12 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
                        e_client_pos_set(ec, x, y);
                        e_policy_visibility_client_defer_move(ec);
                     }
-
-                  e_hints_window_size_set(ec);
                }
              if (vert)
                ec->saved.h = ec->saved.y = 0;
              if (horiz)
                ec->saved.w = ec->saved.x = 0;
           }
-        e_hints_window_maximized_set(ec, ec->maximized & E_MAXIMIZE_HORIZONTAL,
-                                     ec->maximized & E_MAXIMIZE_VERTICAL);
      }
    evas_object_smart_callback_call(ec->frame, "unmaximize_done", NULL);
    ec->changes.need_unmaximize = 0;
@@ -6289,13 +6259,12 @@ e_client_fullscreen(E_Client *ec, E_Fullscreen policy)
         ec->saved.w = w;
         ec->saved.h = h;
      }
-   e_hints_window_size_set(ec);
 
    ec->saved.layer = ec->layer;
    e_client_layer_set(ec, E_LAYER_CLIENT_FULLSCREEN);
 
    ec->fullscreen = 1;
-   if ((eina_list_count(e_comp->zones) > 1) || 
+   if ((eina_list_count(e_comp->zones) > 1) ||
        (policy == E_FULLSCREEN_RESIZE))
      {
         e_client_frame_geometry_set(ec, ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h);
@@ -6306,8 +6275,6 @@ e_client_fullscreen(E_Client *ec, E_Fullscreen policy)
         evas_object_smart_callback_call(ec->frame, "fullscreen_zoom", NULL);
      }
 
-   e_hints_window_fullscreen_set(ec, 1);
-   e_hints_window_size_unset(ec);
    if (!e_client_util_ignored_get(ec))
      _e_client_frame_update(ec);
    ec->fullscreen_policy = policy;
@@ -6346,7 +6313,6 @@ e_client_unfullscreen(E_Client *ec)
 
    e_client_layer_set(ec, ec->saved.layer);
 
-   e_hints_window_fullscreen_set(ec, 0);
    _e_client_event_simple(ec, E_EVENT_CLIENT_UNFULLSCREEN);
 
    if (!ec->desk->fullscreen_clients)
@@ -6600,7 +6566,6 @@ e_client_stick(E_Client *ec)
    ec->desk = NULL;
    ec->sticky = 1;
    ec->hidden = 0;
-   e_hints_window_sticky_set(ec, 1);
    e_client_desk_set(ec, desk);
    evas_object_smart_callback_call(ec->frame, "stick", NULL);
 
@@ -6612,7 +6577,6 @@ e_client_stick(E_Client *ec)
         EINA_LIST_FREE(list, child)
           {
              child->sticky = 1;
-             e_hints_window_sticky_set(child, 1);
              evas_object_show(ec->frame);
           }
      }
@@ -6633,7 +6597,6 @@ e_client_unstick(E_Client *ec)
    desk = e_desk_current_get(ec->zone);
    ec->desk = NULL;
    ec->hidden = ec->sticky = 0;
-   e_hints_window_sticky_set(ec, 0);
    e_client_desk_set(ec, desk);
    evas_object_smart_callback_call(ec->frame, "unstick", NULL);
 
@@ -6645,7 +6608,6 @@ e_client_unstick(E_Client *ec)
         EINA_LIST_FREE(list, child)
           {
              child->sticky = 0;
-             e_hints_window_sticky_set(child, 0);
           }
      }
 
index 4bf94de..cde369f 100644 (file)
@@ -1947,16 +1947,6 @@ layer_set:
              e_client_layer_set(child, layer);
           }
      }
-   if (!cw->ec->override)
-     {
-        /* set client stacking hints based on layer */
-        if (layer == E_LAYER_CLIENT_BELOW)
-          e_hints_window_stacking_set(cw->ec, E_STACKING_BELOW);
-        else if (layer == E_LAYER_CLIENT_ABOVE)
-          e_hints_window_stacking_set(cw->ec, E_STACKING_ABOVE);
-        else
-          e_hints_window_stacking_set(cw->ec, E_STACKING_NONE);
-     }
 
    e_config->transient.raise = oldraise;
 
index 0b29ee5..7b8112c 100644 (file)
@@ -2,61 +2,6 @@
 
 static Eina_List *aux_hints_supported = NULL;
 
-EINTERN void
-e_hints_active_window_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_init(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_state_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_allowed_action_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_type_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_type_get(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_state_get(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_allowed_action_update(E_Client *ec, int action)
-{
-   (void)ec;
-   (void)action;
-}
-
-EINTERN void
-e_hints_allowed_action_get(E_Client *ec)
-{
-   (void)ec;
-}
-
 E_API void
 e_hints_window_visible_set(E_Client *ec)
 {
@@ -64,123 +9,6 @@ e_hints_window_visible_set(E_Client *ec)
 }
 
 EINTERN void
-e_hints_window_iconic_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_hidden_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_shaded_set(E_Client *ec, int on)
-{
-   (void)ec;
-   (void)on;
-}
-
-EINTERN void
-e_hints_window_shade_direction_set(E_Client *ec, E_Direction dir)
-{
-   (void)ec;
-   (void)dir;
-}
-
-EINTERN E_Direction
-e_hints_window_shade_direction_get(E_Client *ec)
-{
-   (void)ec;
-   return E_DIRECTION_UP;
-}
-
-EINTERN void
-e_hints_window_size_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_size_unset(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN int
-e_hints_window_size_get(E_Client *ec)
-{
-   (void)ec;
-   return 1;
-}
-
-EINTERN void
-e_hints_window_maximized_set(E_Client *ec, int horizontal, int vertical)
-{
-   (void)ec;
-   (void)horizontal;
-   (void)vertical;
-}
-
-EINTERN void
-e_hints_window_fullscreen_set(E_Client *ec, int on)
-{
-   (void)ec;
-   (void)on;
-}
-
-EINTERN void
-e_hints_window_sticky_set(E_Client *ec, int on)
-{
-   (void)ec;
-   (void)on;
-}
-
-EINTERN void
-e_hints_window_stacking_set(E_Client *ec, E_Stacking stacking)
-{
-   (void)ec;
-   (void)stacking;
-}
-
-EINTERN void
-e_hints_window_desktop_set(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_e_state_get(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_e_state_set(E_Client *ec EINA_UNUSED)
-{
-   /* TODO */
-}
-
-EINTERN void
-e_hints_window_e_opaque_get(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_virtual_keyboard_state_get(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
-e_hints_window_virtual_keyboard_get(E_Client *ec)
-{
-   (void)ec;
-}
-
-EINTERN void
 e_hints_scale_update(void)
 {
    Eina_List *l;
index 35ed431..4a12fea 100644 (file)
@@ -3,39 +3,7 @@
 #ifndef E_HINTS_H
 #define E_HINTS_H
 
-EINTERN void e_hints_active_window_set(E_Client *ec);
-
-EINTERN void e_hints_window_init(E_Client *ec);
-EINTERN void e_hints_window_state_set(E_Client *ec);
-EINTERN void e_hints_window_state_get(E_Client *ec);
-EINTERN void e_hints_window_type_set(E_Client *ec);
-EINTERN void e_hints_window_type_get(E_Client *ec);
-
 E_API void e_hints_window_visible_set(E_Client *ec);
-EINTERN void e_hints_window_iconic_set(E_Client *ec);
-EINTERN void e_hints_window_hidden_set(E_Client *ec);
-
-EINTERN void e_hints_window_shade_direction_set(E_Client *ec, E_Direction dir);
-EINTERN E_Direction e_hints_window_shade_direction_get(E_Client *ec);
-
-EINTERN void e_hints_window_size_set(E_Client *ec);
-EINTERN void e_hints_window_size_unset(E_Client *ec);
-EINTERN int  e_hints_window_size_get(E_Client *ec);
-
-EINTERN void e_hints_window_shaded_set(E_Client *ec, int on);
-EINTERN void e_hints_window_maximized_set(E_Client *ec, int horizontal, int vertical);
-EINTERN void e_hints_window_fullscreen_set(E_Client *ec, int on);
-EINTERN void e_hints_window_sticky_set(E_Client *ec, int on);
-EINTERN void e_hints_window_stacking_set(E_Client *ec, E_Stacking stacking);
-EINTERN void e_hints_window_desktop_set(E_Client *ec);
-
-EINTERN void e_hints_window_e_state_set(E_Client *ec);
-EINTERN void e_hints_window_e_state_get(E_Client *ec);
-
-EINTERN void e_hints_window_e_opaque_get(E_Client *ec);
-
-EINTERN void e_hints_window_virtual_keyboard_state_get(E_Client *ec);
-EINTERN void e_hints_window_virtual_keyboard_get(E_Client *ec);
 
 EINTERN void e_hints_scale_update(void);
 
@@ -49,9 +17,9 @@ E_API Eina_Bool e_hints_aux_hint_del(E_Client *ec, int32_t id);
 E_API const char * e_hints_aux_hint_value_get(E_Client *ec, const char *name);
 
 EINTERN Eina_Bool e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, const char *val);
-E_API Eina_Bool e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val);
-E_API Eina_Bool e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id);
-E_API const char * e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name);
+EINTERN Eina_Bool e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val);
+EINTERN Eina_Bool e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id);
+EINTERN const char * e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name);
 
 #endif
 #endif