]> git.lizzy.rs Git - plan9front.git/commitdiff
libdraw: remove unused static log2[] array
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 28 Feb 2016 00:38:29 +0000 (01:38 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 28 Feb 2016 00:38:29 +0000 (01:38 +0100)
sys/include/draw.h
sys/src/libdraw/arith.c
sys/src/libmemlayer/line.c

index e83ba72f47c830cd23a62f268b625c958a2bb3ea..5c4f9608a6a6a2ca46823282f9b3fb29001f8dd3 100644 (file)
@@ -521,7 +521,5 @@ extern      void    _setdrawop(Display*, Drawop);
 extern void    _twiddlecompressed(uchar*, int);
 extern int     _compblocksize(Rectangle, int);
 
-/* XXX backwards helps; should go */
-// extern      int             log2[]; /* was used by libmemlayer/line.c */
 extern ulong   drawld2chan[];
-extern void            drawsetdebug(int);
+extern void    drawsetdebug(int);
index 893f39ced9a0ac94966a678c164cec803fba83bd..93d95d5acdef652c51e842c33cd62cd5d2913616 100644 (file)
@@ -166,12 +166,6 @@ ulong drawld2chan[] = {
        CMAP8,
 };
 
-/*
- * was used by libmemlayer/line.c; made static, instead of deleting it,
- * to avoid updating many binaries on sources.
- */
-static int log2[] = { -1, 0, 1, -1, 2, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, 4 /* BUG */, -1, -1, -1, -1, -1, -1, -1, 5 };
-
 ulong
 setalpha(ulong color, uchar alpha)
 {
index 8c09a53592f42b750bc77df0bd156bb543c53b1a..2dc52aa3871a0455d703125d2c947a3fb1df10a4 100644 (file)
@@ -65,11 +65,6 @@ _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memi
                goto Top;
        }
 
-       /* XXX */
-       /* this is not the correct set of tests */
-//     if(log2[dst->depth] != log2[src->depth] || log2[dst->depth]!=3)
-//             return;
-
        /* can't use sutherland-cohen clipping because lines are wide */
        r = memlinebbox(p0, p1, end0, end1, radius);
        /*