Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove some unused variables

  • Loading branch information...
commit c3a90c502067cb6bd645c924c9809d4d9eda49a0 1 parent ee9e5cd
@NotFound authored
Showing with 1 addition and 9 deletions.
  1. +1 −9 examples/pokedit.winxed
View
10 examples/pokedit.winxed
@@ -287,7 +287,6 @@ class FindTool : DialogWindow
function onexpose(event)
{
int ascent = self.ascent;
- int lineheight = self.lineheight;
self.DrawImageString(self.margin, ascent, "Find text");
}
function onkeypress(event)
@@ -1364,8 +1363,6 @@ class TextWindow : ChildWindow
}
function adjust()
{
- int height = self.height;
- int lineheight = self.lineheight;
int headline = self.headline;
int maxlines = self.maxlines;
int lastline = headline + maxlines;
@@ -1393,11 +1390,8 @@ class TextWindow : ChildWindow
}
function down()
{
- int height = self.height;
- int lineheight = self.lineheight;
int headline = self.headline;
- int nlines = elements(self.text);
- if (headline < nlines) {
+ if (headline < elements(self.text)) {
self.scrolldown();
return true;
}
@@ -1422,8 +1416,6 @@ class TextWindow : ChildWindow
int curline = self.curline;
++curline;
self.curline = curline;
- int height = self.height;
- int lineheight = self.lineheight;
int headline = self.headline;
int maxlines = self.maxlines;
if (curline >= headline + maxlines) {
Please sign in to comment.
Something went wrong with that request. Please try again.