Removed unused variable last_y to prevent this warning under mingw:

Compiling Fl_Text_Display.cxx...
    Fl_Text_Display.cxx: In member function 'void Fl_Text_Display::draw_line_numbers(bool)':
    Fl_Text_Display.cxx:2875:9: warning: variable 'last_y' set but not used [-Wunused-but-set-variable]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2014-07-21 18:07:09 +00:00
parent 018f4ee978
commit d785f5b4e8

View File

@ -2872,8 +2872,6 @@ void Fl_Text_Display::draw_line_numbers(bool /*clearAll*/) {
Y = y();
line = get_absolute_top_line_number();
int last_y = y();
// set font color for line numbers
fl_color(linenumber_fgcolor());
for (visLine=0; visLine < mNVisibleLines; visLine++) {
@ -2886,7 +2884,6 @@ void Fl_Text_Display::draw_line_numbers(bool /*clearAll*/) {
hh = lineHeight;
fl_draw(lineNumString, xx, yy, ww, hh, linenumber_align(), 0, 0);
//DEBUG fl_rect(xx, yy, ww, hh);
last_y = Y;
line++;
} else {
if (visLine == 0) line++;