History

libdraw: remove unused static log2[] array

cinap_lenrek committed 10 years ago

Commit 7b844271 parent a08fb223 files · +1 −14Browse files

Unified · Split

3 files
  1. include/draw.h +1 −3
  2. libdraw/arith.c +0 −6
  3. libmemlayer/line.c +0 −5
include/draw.h+1−3
@@ -509,7 +509,5 @@ extern void _setdrawop(Display*, Drawop); · 508 unmodified lines
509509 extern void _twiddlecompressed(uchar*, int);
510510 extern int _compblocksize(Rectangle, int);
511511
512−/* XXX backwards helps; should go */
513−// extern int log2[]; /* was used by libmemlayer/line.c */
514512 extern ulong drawld2chan[];
515−extern void drawsetdebug(int);
513+extern void drawsetdebug(int);
libdraw/arith.c+0−6
@@ -166,12 +166,6 @@ ulong drawld2chan[] = { · 165 unmodified lines
166166 CMAP8,
167167 };
168168
169−/*
170− * was used by libmemlayer/line.c; made static, instead of deleting it,
171− * to avoid updating many binaries on sources.
172− */
173−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 };
174−
175169 ulong
176170 setalpha(ulong color, uchar alpha)
177171 {
libmemlayer/line.c+0−5
@@ -65,11 +65,6 @@ _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memi · 64 unmodified lines
6565 goto Top;
6666 }
6767
68− /* XXX */
69− /* this is not the correct set of tests */
70−// if(log2[dst->depth] != log2[src->depth] || log2[dst->depth]!=3)
71−// return;
72−
7368 /* can't use sutherland-cohen clipping because lines are wide */
7469 r = memlinebbox(p0, p1, end0, end1, radius);
7570 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t