@@ -287,7 +287,6 @@ class FindTool : DialogWindow
287
287
function onexpose(event)
288
288
{
289
289
int ascent = self.ascent;
290
- int lineheight = self.lineheight;
291
290
self.DrawImageString(self.margin, ascent, "Find text");
292
291
}
293
292
function onkeypress(event)
@@ -1364,8 +1363,6 @@ class TextWindow : ChildWindow
1364
1363
}
1365
1364
function adjust()
1366
1365
{
1367
- int height = self.height;
1368
- int lineheight = self.lineheight;
1369
1366
int headline = self.headline;
1370
1367
int maxlines = self.maxlines;
1371
1368
int lastline = headline + maxlines;
@@ -1393,11 +1390,8 @@ class TextWindow : ChildWindow
1393
1390
}
1394
1391
function down()
1395
1392
{
1396
- int height = self.height;
1397
- int lineheight = self.lineheight;
1398
1393
int headline = self.headline;
1399
- int nlines = elements(self.text);
1400
- if (headline < nlines) {
1394
+ if (headline < elements(self.text)) {
1401
1395
self.scrolldown();
1402
1396
return true;
1403
1397
}
@@ -1422,8 +1416,6 @@ class TextWindow : ChildWindow
1422
1416
int curline = self.curline;
1423
1417
++curline;
1424
1418
self.curline = curline;
1425
- int height = self.height;
1426
- int lineheight = self.lineheight;
1427
1419
int headline = self.headline;
1428
1420
int maxlines = self.maxlines;
1429
1421
if (curline >= headline + maxlines) {
0 commit comments