[PATCH 4/5] ddraw: Get rid of dump_light().

Henri Verbeet hverbeet at codeweavers.com
Sun Jan 13 15:08:08 CST 2013


---
 dlls/ddraw/light.c | 30 ------------------------------
 1 file changed, 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();
-- 
1.7.12.4




More information about the wine-patches mailing list