Subject: [PATCH 2/4] remove unused function in clients/smoke.c, silence warning

twied twied at gmx.net
Mon Jan 17 08:55:28 PST 2011


---
  clients/smoke.c |   17 -----------------
  1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/clients/smoke.c b/clients/smoke.c
index 7052cb4..0e9769f 100644
--- a/clients/smoke.c
+++ b/clients/smoke.c
@@ -45,23 +45,6 @@ struct smoke {
  	struct { float *d, *u, *v; } b[2];
  };

-static void set_boundary(struct smoke *smoke, float x, float y, float *p)
-{
-	int i, l;
-
-	l = (smoke->height - 2) * smoke->width;
-	for (i = 1; i < smoke->width - 1; i++) {
-		p[i] = y * p[i + smoke->width];
-		p[l + i + smoke->width] = y * p[l + i];
-	}
-
-	for (i = 1; i < smoke->height - 1; i++) {
-		p[i * smoke->width] = x * p[i * smoke->width + 1];
-		p[i * smoke->width + smoke->width - 1] =
-			x * p[i * smoke->width + smoke->width - 2];
-	}
-}
-
  static void diffuse(struct smoke *smoke, uint32_t time,
  		    float *source, float *dest)
  {
-- 
1.7.2.3


More information about the wayland-devel mailing list