remove the unused code 00/316400/2
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 20 Aug 2024 12:15:03 +0000 (21:15 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 20 Aug 2024 23:56:39 +0000 (23:56 +0000)
Change-Id: I9520dec4893bf99075b76f6c2c82cd4ba0c5c26f

src/bin/core/e_config.c
src/bin/core/e_object.c
src/bin/server/e_comp_wl.c
src/bin/windowmgr/e_place.c

index 3f9c844..048656e 100644 (file)
@@ -823,62 +823,7 @@ e_config_domain_system_load(const char *domain, E_Config_DD *edd)
 EINTERN int
 e_config_profile_save(void)
 {
-#if 0
-   Eet_File *ef;
-   char buf[4096], buf2[4096];
-   int ok = 0;
-
-   /* FIXME: check for other sessions fo E running */
-   e_user_dir_concat_static(buf, "config/profile.cfg");
-   e_user_dir_concat_static(buf2, "config/profile.cfg.tmp");
-
-   ef = eet_open(buf2, EET_FILE_MODE_WRITE);
-   if (ef)
-     {
-        ok = eet_write(ef, "config", _e_config_profile,
-                       strlen(_e_config_profile), 0);
-        if (_e_config_eet_close_handle(ef, buf2))
-          {
-             Eina_Bool ret = EINA_TRUE;
-
-             if (_e_config_revisions > 0)
-               {
-                  int i;
-                  char bsrc[4096], bdst[4096];
-
-                  for (i = _e_config_revisions; i > 1; i--)
-                    {
-                       e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/profile.%i.cfg", i - 1);
-                       e_user_dir_snprintf(bdst, sizeof(bdst), "config/profile.%i.cfg", i);
-                       if ((ecore_file_exists(bsrc)) &&
-                           (ecore_file_size(bsrc)))
-                         {
-                            ret = ecore_file_mv(bsrc, bdst);
-                            if (!ret)
-                              {
-                                 _e_config_mv_error(bsrc, bdst);
-                                 break;
-                              }
-                         }
-                    }
-                  if (ret)
-                    {
-                       e_user_dir_snprintf(bsrc, sizeof(bsrc), "config/profile.cfg");
-                       e_user_dir_snprintf(bdst, sizeof(bdst), "config/profile.1.cfg");
-                       ret = ecore_file_mv(bsrc, bdst);
-//                       if (!ret)
-//                          _e_config_mv_error(bsrc, bdst);
-                    }
-               }
-             ret = ecore_file_mv(buf2, buf);
-             if (!ret) _e_config_mv_error(buf2, buf);
-          }
-        ecore_file_unlink(buf2);
-     }
-   return ok;
-#else
    return 1;
-#endif
 }
 
 /**
index 5f02a89..ac82eaa 100644 (file)
@@ -187,31 +187,6 @@ e_object_ref_get(E_Object *obj)
    return obj->references;
 }
 
-#if 0
-E_API void
-e_bt(void)
-{
-   int i, trace_num;
-   void *trace[128];
-   char **messages = NULL;
-   trace_num = backtrace(trace, 128);
-   messages = backtrace_symbols(trace, trace_num);
-   if (messages)
-     {
-        for (i = 1; i < trace_num; i++)
-          {
-             int j;
-
-             for (j = 1; j < i; j++)
-               putchar(' ');
-             printf("%s\n", messages[i]);
-          }
-        free(messages);
-     }
-}
-
-#endif
-
 E_API int
 e_object_error(E_Object *obj)
 {
index 13755eb..aa95fa6 100644 (file)
@@ -3467,25 +3467,6 @@ err:
    free(evas_gl);
 }
 
-// FIXME
-#if 0
-static void
-_e_comp_wl_gl_popup_cb_close(void *data,
-                             Evas_Object *obj EINA_UNUSED,
-                             void *event_info EINA_UNUSED)
-{
-   evas_object_del(data);
-}
-
-static void
-_e_comp_wl_gl_popup_cb_focus(void *data,
-                             Evas_Object *obj EINA_UNUSED,
-                             void *event_info EINA_UNUSED)
-{
-   elm_object_focus_set(data, EINA_TRUE);
-}
-#endif
-
 static Eina_Bool
 _e_comp_wl_gl_idle(void *data)
 {
@@ -3733,30 +3714,6 @@ e_comp_wl_shutdown(void)
    e_comp_wl = NULL;
    e_comp->wl_comp_data = NULL;
    free(comp);
-   // TODO: yigl
-#if 0
-   E_Comp_Wl_Output *output;
-
-   if (e_comp_wl->screenshooter.global)
-     wl_global_destroy(e_comp_wl->screenshooter.global);
-
-   EINA_LIST_FREE(e_comp_wl->outputs, output)
-     {
-        if (output->id) eina_stringshare_del(output->id);
-        if (output->make) eina_stringshare_del(output->make);
-        if (output->model) eina_stringshare_del(output->model);
-        free(output);
-     }
-
-   /* delete fd handler */
-   if (e_comp_wl->fd_hdlr) ecore_main_fd_handler_del(e_comp_wl->fd_hdlr);
-
-   E_FREE_FUNC(e_comp_wl->ptr.hide_tmr, ecore_timer_del);
-   cursor_timer_ec = NULL;
-
-   /* free allocated data structure */
-   free(e_comp_wl);
-#endif
 }
 
 static void
index 98e6ceb..efe1707 100644 (file)
@@ -111,10 +111,6 @@ e_place_desk_region_smart(E_Desk *desk, Eina_List *skiplist, int x, int y, int w
 
    *rx = x;
    *ry = y;
-#if 0
-   /* DISABLE placement entirely for speed testing */
-   return 1;
-#endif
 
    if ((w <= 0) || (h <= 0))
      {