diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-02-25 17:20:30 -0500 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-02-25 17:20:30 -0500 |
commit | 198362223d2257ded96895bd91df2bea422f361e (patch) | |
tree | 18f20dece89c011b527f2ff4d9440dc497e145ae /xfa/src/fwl | |
parent | 9d8c29dbe9576a52b4f326fdce9d8ea669d26bff (diff) | |
download | pdfium-198362223d2257ded96895bd91df2bea422f361e.tar.xz |
Remove FDE_USEFORMATBLOCK.
This does not appear to ever be defined. There are a few methods which end up
being empty after this change, removed those and their callers as well.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1736133002 .
Diffstat (limited to 'xfa/src/fwl')
-rw-r--r-- | xfa/src/fwl/src/basewidget/fwl_editimp.cpp | 9 | ||||
-rw-r--r-- | xfa/src/fwl/src/basewidget/include/fwl_editimp.h | 1 | ||||
-rw-r--r-- | xfa/src/fwl/src/lightwidget/edit.cpp | 5 |
3 files changed, 0 insertions, 15 deletions
diff --git a/xfa/src/fwl/src/basewidget/fwl_editimp.cpp b/xfa/src/fwl/src/basewidget/fwl_editimp.cpp index 79168af9c1..39be5aa087 100644 --- a/xfa/src/fwl/src/basewidget/fwl_editimp.cpp +++ b/xfa/src/fwl/src/basewidget/fwl_editimp.cpp @@ -85,9 +85,6 @@ FWL_ERR IFWL_Edit::SetLimit(int32_t nLimit) { FWL_ERR IFWL_Edit::SetAliasChar(FX_WCHAR wAlias) { return static_cast<CFWL_EditImp*>(GetImpl())->SetAliasChar(wAlias); } -FWL_ERR IFWL_Edit::SetFormatString(const CFX_WideString& wsFormat) { - return static_cast<CFWL_EditImp*>(GetImpl())->SetFormatString(wsFormat); -} FWL_ERR IFWL_Edit::Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen) { @@ -595,12 +592,6 @@ FWL_ERR CFWL_EditImp::SetAliasChar(FX_WCHAR wAlias) { m_pEdtEngine->SetAliasChar(wAlias); return FWL_ERR_Succeeded; } -FWL_ERR CFWL_EditImp::SetFormatString(const CFX_WideString& wsFormat) { - if (!m_pEdtEngine) - return FWL_ERR_Succeeded; - m_pEdtEngine->SetFormatBlock(0, wsFormat); - return FWL_ERR_Succeeded; -} FWL_ERR CFWL_EditImp::Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen) { diff --git a/xfa/src/fwl/src/basewidget/include/fwl_editimp.h b/xfa/src/fwl/src/basewidget/include/fwl_editimp.h index 67841eb748..db74020adc 100644 --- a/xfa/src/fwl/src/basewidget/include/fwl_editimp.h +++ b/xfa/src/fwl/src/basewidget/include/fwl_editimp.h @@ -56,7 +56,6 @@ class CFWL_EditImp : public CFWL_WidgetImp, public IFDE_TxtEdtEventSink { virtual int32_t GetLimit(); virtual FWL_ERR SetLimit(int32_t nLimit); virtual FWL_ERR SetAliasChar(FX_WCHAR wAlias); - virtual FWL_ERR SetFormatString(const CFX_WideString& wsFormat); virtual FWL_ERR Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen); virtual FWL_ERR DeleteSelections(); virtual FWL_ERR DeleteRange(int32_t nStart, int32_t nCount = -1); diff --git a/xfa/src/fwl/src/lightwidget/edit.cpp b/xfa/src/fwl/src/lightwidget/edit.cpp index 661428622d..58b4f49c4b 100644 --- a/xfa/src/fwl/src/lightwidget/edit.cpp +++ b/xfa/src/fwl/src/lightwidget/edit.cpp @@ -105,11 +105,6 @@ FWL_ERR CFWL_Edit::SetAliasChar(FX_WCHAR wAlias) { return FWL_ERR_Indefinite; return static_cast<IFWL_Edit*>(m_pIface)->SetAliasChar(wAlias); } -FWL_ERR CFWL_Edit::SetFormatString(const CFX_WideString& wsFormat) { - if (!m_pIface) - return FWL_ERR_Indefinite; - return static_cast<IFWL_Edit*>(m_pIface)->SetFormatString(wsFormat); -} FWL_ERR CFWL_Edit::Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen) { |