ecore_drm : Fix build warning for unused parameter and function. 10/69810/3
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 10 May 2016 07:28:39 +0000 (16:28 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 26 May 2016 06:24:46 +0000 (23:24 -0700)
Instead of some unused parameters (void)variable_name line
and remove unused function.

Change-Id: Iddf588aa35c7284539de1a88d27b717094b010bb

src/lib/ecore_drm/ecore_drm_output.c
src/lib/ecore_drm/ecore_drm_sprites.c

index 538cf0c..423fbb9 100755 (executable)
@@ -698,36 +698,6 @@ finish:
 }
 #endif
 
-static void
-_ecore_drm_output_delete(Ecore_Drm_Device *dev, Ecore_Drm_Output *output)
-{
-   drmModeConnector *conn;
-   Ecore_Drm_Output_Mode *mode;
-   int i;
-   Eina_List *l;
-
-   if (!(conn = drmModeGetConnector(dev->drm.fd, output->conn_id)))
-     {
-        ERR("drmModeGetConnector fail\n");
-        return;
-     }
-
-   EINA_LIST_FREE(output->modes, mode)
-     free(mode);
-
-   if (output->dpms)
-     drmModeFreeProperty(output->dpms);
-   if (output->crtc)
-     drmModeFreeCrtc(output->crtc);
-   dev->crtc_allocator &= ~(1 << output->crtc_id);
-   dev->conn_allocator &= ~(1 << output->conn_id);
-   eina_stringshare_del(output->name);
-   eina_stringshare_del(output->model);
-   eina_stringshare_del(output->make);
-   free(output);
-   output = NULL;
-}
-
 void
 _ecore_drm_outputs_update(Ecore_Drm_Device *dev)
 {
index fcef5e6..32316f4 100644 (file)
@@ -57,6 +57,8 @@ ecore_drm_sprites_create(Ecore_Drm_Device *dev)
 
    /* free resources */
    drmModeFreePlaneResources(res);
+#else
+   (void)dev;
 #endif
 
    return EINA_TRUE;
@@ -80,6 +82,8 @@ ecore_drm_sprites_destroy(Ecore_Drm_Device *dev)
 
         free(sprite);
      }
+#else
+   (void)dev;
 #endif
 }
 
@@ -103,6 +107,10 @@ ecore_drm_sprites_fb_set(Ecore_Drm_Sprite *sprite, int fb_id, int flags)
                         sprite->output->crtc_id, 0, 0, 
                         0, 0, 0, 0, 0, 0, 0, 0);
      }
+#else
+   (void)sprite;
+   (void)fb_id;
+   (void)flags;
 #endif
 }
 
@@ -122,6 +130,9 @@ ecore_drm_sprites_crtc_supported(Ecore_Drm_Output *output, unsigned int supporte
         if (dev->crtcs[c] != output->crtc_id) continue;
         if ((supported) && (1 << c)) return EINA_FALSE;
      }
+#else
+   (void)output;
+   (void)supported;
 #endif
    return EINA_TRUE;
 }