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

Alexandre Julliard julliard at winehq.org
Mon May 10 11:59:12 CDT 2010


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Fri May  7 21:32:26 2010 +0200

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

---

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

diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 29ff5a6..930fb14 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -1415,7 +1415,7 @@ static void ME_ArrowPageDown(ME_TextEditor *editor, ME_Cursor *pCursor)
   } else {
     ME_DisplayItem *pRun = pCursor->pRun;
     ME_DisplayItem *p;
-    int ys, yd, yp;
+    int yd, yp;
     int yOldScrollPos = editor->vert_si.nPos;
 
     if (!pCursor->nOffset && editor->bCaretAtEnd)
@@ -1424,7 +1424,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;
-    ys = y = yp + p->member.row.pt.y;
+    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




More information about the wine-cvs mailing list