summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_edit_impl.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-15 13:26:44 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-15 20:39:40 +0000
commitbff66f1d8d74d3ea22b3b4da775588e07509f6ac (patch)
tree13fd8bfe803c055640afdea4e85d395b3839887a /fpdfsdk/pwl/cpwl_edit_impl.h
parent160738fc1f6f50be46decaba54adeb60546c63ec (diff)
downloadpdfium-bff66f1d8d74d3ea22b3b4da775588e07509f6ac.tar.xz
Simplify CPWL_EditImpl_Undo.
Change-Id: I15307562fcf8f0aebd6e14293b46a10106c4ace7 Reviewed-on: https://pdfium-review.googlesource.com/10858 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_edit_impl.h')
-rw-r--r--fpdfsdk/pwl/cpwl_edit_impl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.h b/fpdfsdk/pwl/cpwl_edit_impl.h
index d65610dc43..80c68050f5 100644
--- a/fpdfsdk/pwl/cpwl_edit_impl.h
+++ b/fpdfsdk/pwl/cpwl_edit_impl.h
@@ -103,7 +103,7 @@ class CPWL_EditImpl_Select {
class CPWL_EditImpl_Undo {
public:
- explicit CPWL_EditImpl_Undo(int32_t nBufsize);
+ CPWL_EditImpl_Undo();
~CPWL_EditImpl_Undo();
void AddItem(std::unique_ptr<IFX_Edit_UndoItem> pItem);
@@ -111,7 +111,6 @@ class CPWL_EditImpl_Undo {
void Redo();
bool CanUndo() const;
bool CanRedo() const;
- void Reset();
private:
void RemoveHeads();
@@ -119,7 +118,6 @@ class CPWL_EditImpl_Undo {
std::deque<std::unique_ptr<IFX_Edit_UndoItem>> m_UndoItemStack;
size_t m_nCurUndoPos;
- size_t m_nBufSize;
bool m_bWorking;
};