riched20: Make ME_GetCursorCoordinates() static and remove ME_MustBeWrapped() as it is unused.
Francois Gouget
fgouget at free.fr
Mon May 25 17:45:31 CDT 2009
---
The patches in this riched20 series are independent from each other.
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
--
1.6.2.4
More information about the wine-patches
mailing list