Skip to content

Commit

Permalink
remove some unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Apr 28, 2012
1 parent ee9e5cd commit c3a90c5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions examples/pokedit.winxed
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand All @@ -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) {
Expand Down

0 comments on commit c3a90c5

Please sign in to comment.