From df525e292265c250d380ee9690baa0f459e9f1ee Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 18 Oct 2011 22:18:39 +0000 Subject: Removed unused variables (gcc 4.6 warning [-Wunused-but-set-variable]). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Text_Display.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index c1ce82a05..2d060fa49 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -808,7 +808,7 @@ void Fl_Text_Display::overstrike(const char* text) { int Fl_Text_Display::position_to_xy( int pos, int* X, int* Y ) const { IS_UTF8_ALIGNED2(buffer(), pos) - int lineStartPos, fontHeight, lineLen; + int lineStartPos, fontHeight; int visLineNum; /* If position is not displayed, return false */ @@ -835,7 +835,6 @@ int Fl_Text_Display::position_to_xy( int pos, int* X, int* Y ) const { *X = text_area.x - mHorizOffset; return 1; } - lineLen = vline_length( visLineNum ); *X = text_area.x + handle_vline(GET_WIDTH, lineStartPos, pos-lineStartPos, 0, 0, 0, 0, 0, 0) - mHorizOffset; return 1; } @@ -2979,7 +2978,7 @@ void Fl_Text_Display::measure_deleted_lines(int pos, int nDeleted) { int nVisLines = mNVisibleLines; int *lineStarts = mLineStarts; int countFrom, lineStart; - int visLineNum = 0, nLines = 0, i; + int nLines = 0, i; /* ** Determine where to begin searching: either the previous newline, or ** if possible, limit to the start of the (original) previous displayed @@ -2991,7 +2990,6 @@ void Fl_Text_Display::measure_deleted_lines(int pos, int nDeleted) { break; if (i > 0) { countFrom = lineStarts[i-1]; - visLineNum = i-1; } else countFrom = buf->line_start(pos); } else -- cgit v1.2.3