Author: AlbrechtS
Date: 2011-10-18 15:18:39 -0700 (Tue, 18 Oct 2011)
New Revision: 9137
Log:
Removed unused variables (gcc 4.6 warning [-Wunused-but-set-variable]).


Modified:
   branches/branch-1.3/src/Fl_Text_Display.cxx

Modified: branches/branch-1.3/src/Fl_Text_Display.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Display.cxx 2011-10-18 12:25:40 UTC (rev 
9136)
+++ branches/branch-1.3/src/Fl_Text_Display.cxx 2011-10-18 22:18:39 UTC (rev 
9137)
@@ -808,7 +808,7 @@
 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 @@
     *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 @@
   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 @@
         break;
     if (i > 0) {
       countFrom = lineStarts[i-1];
-      visLineNum = i-1;
     } else
       countFrom = buf->line_start(pos);
   } else

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to