riched20: Remove variables yprev and ys which are not really used from ME_ArrowPageUp.

Gerald Pfeifer gerald at pfeifer.com
Fri May 14 15:04:32 CDT 2010


---
 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 930fb14..5750db9 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -1354,7 +1354,7 @@ static void ME_ArrowPageUp(ME_TextEditor *editor, ME_Cursor *pCursor)
   } else {
     ME_DisplayItem *pRun = pCursor->pRun;
     ME_DisplayItem *pLast;
-    int x, y, ys, yd, yp, yprev;
+    int x, y, yd, yp;
     int yOldScrollPos = editor->vert_si.nPos;
 
     x = ME_GetXForArrow(editor, pCursor);
@@ -1364,7 +1364,7 @@ static void ME_ArrowPageUp(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;
+    y = yp + p->member.row.pt.y;
 
     ME_ScrollUp(editor, editor->sizeWindow.cy);
     /* Only move the cursor by the amount scrolled. */
@@ -1385,7 +1385,6 @@ static void ME_ArrowPageUp(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,
-- 
1.6.6.2



More information about the wine-patches mailing list