summaryrefslogtreecommitdiff
path: root/xfa/fwl/basewidget/fwl_editimp.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-13 15:19:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-13 15:19:22 -0700
commit8adc153ea6fe778d19dc33cd2c5b87aed312b29b (patch)
tree4d211dbbee779e74c485149d037c9ee2bcbf7fce /xfa/fwl/basewidget/fwl_editimp.cpp
parentf7036ba5884b9829fcb17aea4f3a16831abb7516 (diff)
downloadpdfium-8adc153ea6fe778d19dc33cd2c5b87aed312b29b.tar.xz
ReplaceSelections() methods never called.
Review-Url: https://codereview.chromium.org/1973883005
Diffstat (limited to 'xfa/fwl/basewidget/fwl_editimp.cpp')
-rw-r--r--xfa/fwl/basewidget/fwl_editimp.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/xfa/fwl/basewidget/fwl_editimp.cpp b/xfa/fwl/basewidget/fwl_editimp.cpp
index 9f80336efa..083a0885f7 100644
--- a/xfa/fwl/basewidget/fwl_editimp.cpp
+++ b/xfa/fwl/basewidget/fwl_editimp.cpp
@@ -127,9 +127,6 @@ FWL_Error IFWL_Edit::DeleteSelections() {
FWL_Error IFWL_Edit::DeleteRange(int32_t nStart, int32_t nCount) {
return static_cast<CFWL_EditImp*>(GetImpl())->DeleteRange(nStart, nCount);
}
-FWL_Error IFWL_Edit::ReplaceSelections(const CFX_WideStringC& wsReplace) {
- return static_cast<CFWL_EditImp*>(GetImpl())->ReplaceSelections(wsReplace);
-}
FWL_Error IFWL_Edit::Replace(int32_t nStart,
int32_t nLen,
const CFX_WideStringC& wsReplace) {
@@ -664,19 +661,6 @@ FWL_Error CFWL_EditImp::DeleteRange(int32_t nStart, int32_t nCount) {
return FWL_Error::Succeeded;
}
-FWL_Error CFWL_EditImp::ReplaceSelections(const CFX_WideStringC& wsReplace) {
- if (!m_pEdtEngine)
- return FWL_Error::Indefinite;
-
- int32_t iCount = m_pEdtEngine->CountSelRanges();
- for (int i = 0; i < iCount; i++) {
- int32_t nStart;
- int32_t nCount = m_pEdtEngine->GetSelRange(i, nStart);
- m_pEdtEngine->Replace(nStart, nCount, wsReplace);
- }
- return FWL_Error::Succeeded;
-}
-
FWL_Error CFWL_EditImp::Replace(int32_t nStart,
int32_t nLen,
const CFX_WideStringC& wsReplace) {