Francois Gouget : riched20: Make ME_GetCursorCoordinates() static and remove ME_MustBeWrapped() as it is unused.

Alexandre Julliard julliard at winehq.org
Tue May 26 09:24:55 CDT 2009


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue May 26 00:45:31 2009 +0200

riched20: Make ME_GetCursorCoordinates() static and remove ME_MustBeWrapped() as it is unused.

---

 dlls/riched20/caret.c  |    2 +-
 dlls/riched20/editor.h |    3 ---
 dlls/riched20/run.c    |   12 ------------
 3 files changed, 1 insertions(+), 16 deletions(-)

diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 2151e43..1cb44bc 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -168,7 +168,7 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to)
 }
 
 
-void
+static void
 ME_GetCursorCoordinates(ME_TextEditor *editor, ME_Cursor *pCursor,
                         int *x, int *y, int *height)
 {
diff --git a/dlls/riched20/editor.h b/dlls/riched20/editor.h
index 8568420..0929e82 100644
--- a/dlls/riched20/editor.h
+++ b/dlls/riched20/editor.h
@@ -171,9 +171,6 @@ void ME_InsertTextFromCursor(ME_TextEditor *editor, int nCursor,
 void ME_InsertEndRowFromCursor(ME_TextEditor *editor, int nCursor);
 BOOL ME_ArrowKey(ME_TextEditor *ed, int nVKey, BOOL extend, BOOL ctrl);
 
-void ME_MustBeWrapped(ME_Context *c, ME_DisplayItem *para);
-void ME_GetCursorCoordinates(ME_TextEditor *editor, ME_Cursor *pCursor,
-                             int *x, int *y, int *height);
 int ME_GetCursorOfs(ME_TextEditor *editor, int nCursor);
 void ME_GetSelection(ME_TextEditor *editor, int *from, int *to);
 int ME_CountParagraphsBetween(ME_TextEditor *editor, int from, int to);
diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c
index 9778ea9..cf6c1fc 100644
--- a/dlls/riched20/run.c
+++ b/dlls/riched20/run.c
@@ -725,18 +725,6 @@ void ME_CalcRunExtent(ME_Context *c, const ME_Paragraph *para, int startx, ME_Ru
 }
 
 /******************************************************************************
- * ME_MustBeWrapped
- * 
- * This should ensure that the given paragraph is wrapped so that its screen
- * row structure may be used. But it doesn't, yet. 
- */     
-void ME_MustBeWrapped(ME_Context *c, ME_DisplayItem *para)
-{
-  assert(para->type == diParagraph);
-  /* FIXME */
-}
-
-/******************************************************************************
  * ME_SetSelectionCharFormat
  * 
  * Applies a style change, either to a current selection, or to insert cursor




More information about the wine-cvs mailing list