]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/libdraw/init.c
libdraw: get rid of _drawdebug variable
[plan9front.git] / sys / src / libdraw / init.c
index 90619032fca6829772b78fa81d11559616f32cf3..ce6f0bc6cb471b0fad35d4f15c40a691507b24f5 100644 (file)
@@ -5,7 +5,6 @@
 Display        *display;
 Font   *font;
 Image  *screen;
-int    _drawdebug = 0;
 
 static char deffontname[] = "*default*";
 Screen *_screen;
@@ -411,15 +410,13 @@ static
 int
 doflush(Display *d)
 {
-       int n, nn;
+       int n;
 
        n = d->bufp-d->buf;
        if(n <= 0)
                return 1;
 
-       if((nn=write(d->fd, d->buf, n)) != n){
-               if(_drawdebug)
-                       fprint(2, "flushimage fail: d=%p: n=%d nn=%d %r\n", d, n, nn); /**/
+       if(write(d->fd, d->buf, n) != n){
                d->bufp = d->buf;       /* might as well; chance of continuing */
                return -1;
        }