From d785f5b4e8163a2e907b8d95fc8af566b18c24bb Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 21 Jul 2014 18:07:09 +0000 Subject: 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 --- src/Fl_Text_Display.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 564611ad2..56563ac74 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -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++; -- cgit v1.2.3