riched20: Remove variable di which is not really used from ME_InsertEndRowFromCursor.

Gerald Pfeifer gerald at pfeifer.com
Sun May 2 15:21:12 CDT 2010


Most other invocations of ME_InternalInsertTextFromCursor do not use
the return value, either, though there are some that explicitly do so,
extracting relevant information (which we do not need here).

Gerald
---
 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 8360f06..29ff5a6 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -489,15 +489,14 @@ void ME_InsertOLEFromCursor(ME_TextEditor *editor, const REOBJECT* reo, int nCur
 void ME_InsertEndRowFromCursor(ME_TextEditor *editor, int nCursor)
 {
   ME_Style              *pStyle = ME_GetInsertStyle(editor, nCursor);
-  ME_DisplayItem        *di;
   WCHAR                 space = ' ';
 
   /* FIXME no no no */
   if (ME_IsSelection(editor))
     ME_DeleteSelection(editor);
 
-  di = ME_InternalInsertTextFromCursor(editor, nCursor, &space, 1, pStyle,
-                                       MERF_ENDROW);
+  ME_InternalInsertTextFromCursor(editor, nCursor, &space, 1, pStyle,
+                                  MERF_ENDROW);
   ME_ReleaseStyle(pStyle);
 }
 
-- 
1.6.6.2



More information about the wine-patches mailing list