Henri Verbeet : ddraw: Get rid of dump_light().

Alexandre Julliard julliard at winehq.org
Mon Jan 14 15:55:49 CST 2013


Module: wine
Branch: master
Commit: af377acabed7fce13dea9aab9e55381d4d961c5b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=af377acabed7fce13dea9aab9e55381d4d961c5b

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Jan 13 22:08:08 2013 +0100

ddraw: Get rid of dump_light().

---

 dlls/ddraw/light.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/dlls/ddraw/light.c b/dlls/ddraw/light.c
index 1d81803..c4062ac 100644
--- a/dlls/ddraw/light.c
+++ b/dlls/ddraw/light.c
@@ -166,24 +166,6 @@ static HRESULT WINAPI d3d_light_Initialize(IDirect3DLight *iface, IDirect3D *d3d
     return D3D_OK;
 }
 
-/*****************************************************************************
- * IDirect3DLight::SetLight
- *
- * Assigns a lighting value to this object
- *
- * Params:
- *  Light: Lighting parameter to set
- *
- * Returns:
- *  D3D_OK on success
- *  DDERR_INVALIDPARAMS if Light is NULL
- *
- *****************************************************************************/
-static void dump_light(const D3DLIGHT2 *light)
-{
-    TRACE("    - dwSize : %d\n", light->dwSize);
-}
-
 static const float zero_value[] = {
     0.0, 0.0, 0.0, 0.0
 };
@@ -195,12 +177,6 @@ static HRESULT WINAPI d3d_light_SetLight(IDirect3DLight *iface, D3DLIGHT *data)
 
     TRACE("iface %p, data %p.\n", iface, data);
 
-    if (TRACE_ON(ddraw))
-    {
-        TRACE("  Light definition :\n");
-        dump_light((D3DLIGHT2 *)data);
-    }
-
     if ((!data->dltType) || (data->dltType > D3DLIGHT_PARALLELPOINT))
          return DDERR_INVALIDPARAMS;
 
@@ -252,12 +228,6 @@ static HRESULT WINAPI d3d_light_GetLight(IDirect3DLight *iface, D3DLIGHT *lpLigh
 
     TRACE("iface %p, light %p.\n", iface, lpLight);
 
-    if (TRACE_ON(ddraw))
-    {
-        TRACE("  Returning light definition :\n");
-        dump_light(&light->light);
-    }
-
     wined3d_mutex_lock();
     memcpy(lpLight, &light->light, lpLight->dwSize);
     wined3d_mutex_unlock();




More information about the wine-cvs mailing list