remove unused function in clients/smoke.c, silence warning
authorTim Wiederhake <twied@gmx.net>
Mon, 17 Jan 2011 11:50:28 +0000 (12:50 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 23 Jan 2011 18:58:26 +0000 (13:58 -0500)
clients/smoke.c

index c3e8131..0710b3a 100644 (file)
@@ -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)
 {