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:
parent
0ba6c0e381
commit
df525e2922
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user