Gerald Pfeifer : riched20: Remove variable yprev which is not really used from ME_ArrowPageDown.

Alexandre Julliard julliard at winehq.org
Mon May 3 11:54:09 CDT 2010


Module: wine
Branch: master
Commit: 01777ac5cef2db6c0a8c130a23ff935d39a6cae8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=01777ac5cef2db6c0a8c130a23ff935d39a6cae8

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sat May  1 17:24:06 2010 +0200

riched20: Remove variable yprev which is not really used from ME_ArrowPageDown.

---

 dlls/riched20/caret.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index a72a42b..8360f06 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -1416,7 +1416,7 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
   } else {
     ME_DisplayItem *pRun = pCursor->pRun;
     ME_DisplayItem *p;
-    int ys, yd, yp, yprev;
+    int ys, yd, yp;
     int yOldScrollPos = editor->vert_si.nPos;
 
     if (!pCursor->nOffset && editor->bCaretAtEnd)
@@ -1425,7 +1425,7 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
     p = ME_FindItemBack(pRun, diStartRowOrParagraph);
     assert(p->type == diStartRow);
     yp = ME_FindItemBack(p, diParagraph)->member.para.pt.y;
-    yprev = ys = y = yp + p->member.row.pt.y;
+    ys = y = yp + p->member.row.pt.y;
 
     /* For native richedit controls:
      * v1.0 - v3.1 can only scroll down as far as the scrollbar lets us
@@ -1447,7 +1447,6 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
       if (y >= yd)
         break;
       pLast = p;
-      yprev = y;
     } while(1);
 
     pCursor->pRun = ME_FindRunInRow(editor, pLast, x, &pCursor->nOffset,




More information about the wine-cvs mailing list