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
This commit is contained in:
Albrecht Schlosser 2011-10-18 22:18:39 +00:00
parent 0ba6c0e381
commit df525e2922

View File

@ -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 { int Fl_Text_Display::position_to_xy( int pos, int* X, int* Y ) const {
IS_UTF8_ALIGNED2(buffer(), pos) IS_UTF8_ALIGNED2(buffer(), pos)
int lineStartPos, fontHeight, lineLen; int lineStartPos, fontHeight;
int visLineNum; int visLineNum;
/* If position is not displayed, return false */ /* 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; *X = text_area.x - mHorizOffset;
return 1; return 1;
} }
lineLen = vline_length( visLineNum );
*X = text_area.x + handle_vline(GET_WIDTH, lineStartPos, pos-lineStartPos, 0, 0, 0, 0, 0, 0) - mHorizOffset; *X = text_area.x + handle_vline(GET_WIDTH, lineStartPos, pos-lineStartPos, 0, 0, 0, 0, 0, 0) - mHorizOffset;
return 1; return 1;
} }
@ -2979,7 +2978,7 @@ void Fl_Text_Display::measure_deleted_lines(int pos, int nDeleted) {
int nVisLines = mNVisibleLines; int nVisLines = mNVisibleLines;
int *lineStarts = mLineStarts; int *lineStarts = mLineStarts;
int countFrom, lineStart; int countFrom, lineStart;
int visLineNum = 0, nLines = 0, i; int nLines = 0, i;
/* /*
** Determine where to begin searching: either the previous newline, or ** Determine where to begin searching: either the previous newline, or
** if possible, limit to the start of the (original) previous displayed ** 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; break;
if (i > 0) { if (i > 0) {
countFrom = lineStarts[i-1]; countFrom = lineStarts[i-1];
visLineNum = i-1;
} else } else
countFrom = buf->line_start(pos); countFrom = buf->line_start(pos);
} else } else