Dylan Smith : richedit: Removed unused hwndEdit variable for the RTF parser .
Alexandre Julliard
julliard at winehq.org
Mon Dec 15 08:27:29 CST 2008
Module: wine
Branch: master
Commit: 7e94a230e1e6afc3cd7d41865b8d6eeda8d86580
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e94a230e1e6afc3cd7d41865b8d6eeda8d86580
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Mon Dec 15 04:31:52 2008 -0500
richedit: Removed unused hwndEdit variable for the RTF parser.
There is no reason for the rich text format parser to need a handle to
the window, and even if there were it has a handle to the editor which
contains a handle to the window. It is better to remove this
considering we need to cut down on the use of window handles to
implement windowless richedit controls.
---
dlls/riched20/editor.c | 1 -
dlls/riched20/rtf.h | 3 ---
2 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 16f2771..55bc9b8 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1470,7 +1470,6 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
memset(&parser, 0, sizeof parser);
RTFSetEditStream(&parser, &inStream);
parser.rtfFormat = format&(SF_TEXT|SF_RTF);
- parser.hwndEdit = editor->hWnd;
parser.editor = editor;
parser.style = style;
WriterInit(&parser);
diff --git a/dlls/riched20/rtf.h b/dlls/riched20/rtf.h
index 8fc8abc..a276b7c 100644
--- a/dlls/riched20/rtf.h
+++ b/dlls/riched20/rtf.h
@@ -1157,9 +1157,6 @@ struct _RTF_Info {
ME_InStream *stream;
- /* edit window to output to */
- HWND hwndEdit;
-
ME_TextEditor *editor;
ME_Style *style;
More information about the wine-cvs
mailing list