summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-02-28 01:38:29 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-02-28 01:38:29 +0100
commit75186be2c2aa5566f3c490e087c24e12c872216e (patch)
tree2e5513c8b2ff27855353095fd11c5c788b56441f
parente02b986a801307d05e238c2af42b8a56f213f6ff (diff)
libdraw: remove unused static log2[] array
-rw-r--r--sys/include/draw.h4
-rw-r--r--sys/src/libdraw/arith.c6
-rw-r--r--sys/src/libmemlayer/line.c5
3 files changed, 1 insertions, 14 deletions
diff --git a/sys/include/draw.h b/sys/include/draw.h
index e83ba72f4..5c4f9608a 100644
--- a/sys/include/draw.h
+++ b/sys/include/draw.h
@@ -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);
diff --git a/sys/src/libdraw/arith.c b/sys/src/libdraw/arith.c
index 893f39ced..93d95d5ac 100644
--- a/sys/src/libdraw/arith.c
+++ b/sys/src/libdraw/arith.c
@@ -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)
{
diff --git a/sys/src/libmemlayer/line.c b/sys/src/libmemlayer/line.c
index 8c09a5359..2dc52aa38 100644
--- a/sys/src/libmemlayer/line.c
+++ b/sys/src/libmemlayer/line.c
@@ -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);
/*