summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_edit_impl.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-12 07:15:14 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-15 16:22:30 +0000
commitae9c5cacce885fd6622689ecc8aab7571fb23938 (patch)
treee3dd356022e3521519321f6583492f5a40702ef3 /fpdfsdk/pwl/cpwl_edit_impl.cpp
parent5688d624690e1fdc3cbbbbf23a5b475f40818728 (diff)
downloadpdfium-ae9c5cacce885fd6622689ecc8aab7571fb23938.tar.xz
Remove CPWL_EditImpl_UndoItem.
This base class does not do anything useful. Change-Id: Ib8c44c1778cdc992abb66177ea534bda0f1f15d3 Reviewed-on: https://pdfium-review.googlesource.com/10851 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_edit_impl.cpp')
-rw-r--r--fpdfsdk/pwl/cpwl_edit_impl.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.cpp b/fpdfsdk/pwl/cpwl_edit_impl.cpp
index b962e6d937..bb5725b42e 100644
--- a/fpdfsdk/pwl/cpwl_edit_impl.cpp
+++ b/fpdfsdk/pwl/cpwl_edit_impl.cpp
@@ -273,27 +273,6 @@ void CPWL_EditImpl_Undo::Reset() {
m_nCurUndoPos = 0;
}
-CPWL_EditImpl_UndoItem::CPWL_EditImpl_UndoItem()
- : m_bFirst(true), m_bLast(true) {}
-
-CPWL_EditImpl_UndoItem::~CPWL_EditImpl_UndoItem() {}
-
-CFX_WideString CPWL_EditImpl_UndoItem::GetUndoTitle() const {
- return CFX_WideString();
-}
-
-void CPWL_EditImpl_UndoItem::SetFirst(bool bFirst) {
- m_bFirst = bFirst;
-}
-
-void CPWL_EditImpl_UndoItem::SetLast(bool bLast) {
- m_bLast = bLast;
-}
-
-bool CPWL_EditImpl_UndoItem::IsLast() {
- return m_bLast;
-}
-
CFXEU_InsertWord::CFXEU_InsertWord(CPWL_EditImpl* pEdit,
const CPVT_WordPlace& wpOldPlace,
const CPVT_WordPlace& wpNewPlace,
@@ -477,7 +456,7 @@ CFXEU_InsertText::CFXEU_InsertText(CPWL_EditImpl* pEdit,
CFXEU_InsertText::~CFXEU_InsertText() {}
void CFXEU_InsertText::Redo() {
- if (m_pEdit && IsLast()) {
+ if (m_pEdit) {
m_pEdit->SelectNone();
m_pEdit->SetCaret(m_wpOld);
m_pEdit->InsertText(m_swText, m_nCharset, false, true);
@@ -1929,7 +1908,7 @@ int32_t CPWL_EditImpl::GetCharSetFromUnicode(uint16_t word,
}
void CPWL_EditImpl::AddEditUndoItem(
- std::unique_ptr<CPWL_EditImpl_UndoItem> pEditUndoItem) {
+ std::unique_ptr<IFX_Edit_UndoItem> pEditUndoItem) {
m_Undo.AddItem(std::move(pEditUndoItem));
}