Alexandre Julliard : riched20: Remove a couple of no longer used
functions.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jan 27 05:59:07 CST 2006
Module: wine
Branch: refs/heads/master
Commit: ba0d6bd0f7052a96efb104b41e6ab5695508811f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ba0d6bd0f7052a96efb104b41e6ab5695508811f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jan 27 12:20:21 2006 +0100
riched20: Remove a couple of no longer used functions.
---
dlls/riched20/paint.c | 45 ---------------------------------------------
1 files changed, 0 insertions(+), 45 deletions(-)
diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index b9745e2..ad4733f 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -94,51 +94,6 @@ void ME_PaintContent(ME_TextEditor *edit
ME_DestroyContext(&c);
}
-static void ME_MarkParagraphRange(ME_TextEditor *editor, ME_DisplayItem *p1,
- ME_DisplayItem *p2, int nFlags)
-{
- ME_DisplayItem *p3;
- if (p1 == p2)
- {
- p1->member.para.nFlags |= nFlags;
- return;
- }
- if (p1->member.para.nCharOfs > p2->member.para.nCharOfs)
- p3 = p1, p1 = p2, p2 = p3;
-
- p1->member.para.nFlags |= nFlags;
- do {
- p1 = p1->member.para.next_para;
- p1->member.para.nFlags |= nFlags;
- } while (p1 != p2);
-}
-
-static void ME_MarkOffsetRange(ME_TextEditor *editor, int from, int to, int nFlags)
-{
- ME_Cursor c1, c2;
- ME_CursorFromCharOfs(editor, from, &c1);
- ME_CursorFromCharOfs(editor, to, &c2);
-
- ME_MarkParagraphRange(editor, ME_GetParagraph(c1.pRun), ME_GetParagraph(c2.pRun), nFlags);
-}
-
-static void ME_MarkSelectionForRepaint(ME_TextEditor *editor)
-{
- int from, to, from2, to2, end;
-
- end = ME_GetTextLength(editor);
- ME_GetSelection(editor, &from, &to);
- from2 = editor->nLastSelStart;
- to2 = editor->nLastSelEnd;
- if (from<from2) ME_MarkOffsetRange(editor, from, from2, MEPF_REPAINT);
- if (from>from2) ME_MarkOffsetRange(editor, from2, from, MEPF_REPAINT);
- if (to<to2) ME_MarkOffsetRange(editor, to, to2, MEPF_REPAINT);
- if (to>to2) ME_MarkOffsetRange(editor, to2, to, MEPF_REPAINT);
-
- editor->nLastSelStart = from;
- editor->nLastSelEnd = to;
-}
-
void ME_Repaint(ME_TextEditor *editor)
{
ME_Cursor *pCursor = &editor->pCursors[0];
More information about the wine-cvs
mailing list