riched20: Remove unused code from ITextHost_TxGetPropertyBits.

Currently TxGetPropertyBits is only called during text services
creation, so the editor is not set.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2021-03-15 10:03:19 +00:00 committed by Alexandre Julliard
parent dc6434959e
commit b456420096
1 changed files with 6 additions and 20 deletions

View File

@ -375,28 +375,14 @@ DECLSPEC_HIDDEN HRESULT __thiscall ITextHostImpl_TxGetPropertyBits( ITextHost *i
struct host *host = impl_from_ITextHost( iface );
DWORD style;
DWORD dwBits = 0;
DWORD dwScrollBar;
if (host->editor)
{
style = host->editor->styleFlags;
if (host->editor->mode & TM_RICHTEXT)
dwBits |= TXTBIT_RICHTEXT;
if (host->editor->bWordWrap)
dwBits |= TXTBIT_WORDWRAP;
if (style & ECO_AUTOWORDSELECTION)
dwBits |= TXTBIT_AUTOWORDSEL;
}
else
{
DWORD dwScrollBar;
style = GetWindowLongW( host->window, GWL_STYLE );
ITextHostImpl_TxGetScrollBars(iface, &dwScrollBar);
style = GetWindowLongW( host->window, GWL_STYLE );
ITextHostImpl_TxGetScrollBars(iface, &dwScrollBar);
dwBits |= TXTBIT_RICHTEXT|TXTBIT_AUTOWORDSEL;
if (!(dwScrollBar & ES_AUTOHSCROLL))
dwBits |= TXTBIT_WORDWRAP;
}
dwBits |= TXTBIT_RICHTEXT|TXTBIT_AUTOWORDSEL;
if (!(dwScrollBar & ES_AUTOHSCROLL))
dwBits |= TXTBIT_WORDWRAP;
/* Bits that correspond to window styles. */
if (style & ES_MULTILINE)