diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-19 19:00:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-19 19:00:43 +0000 |
commit | 58c2c144c5ac6a7397573d2f25d1ba9c79bc4f15 (patch) | |
tree | 438cd4c32e367e1433d5e5f01896984d564f67c2 /fpdfsdk/pwl | |
parent | 9ccf08746e57a03fd9afc187cb3e23404cdc88bb (diff) | |
download | pdfium-58c2c144c5ac6a7397573d2f25d1ba9c79bc4f15.tar.xz |
Remove some dead code.
Change-Id: I8edb14c024860c66b5e6c014136393e71e38387d
Reviewed-on: https://pdfium-review.googlesource.com/21570
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r-- | fpdfsdk/pwl/cpwl_edit.cpp | 9 | ||||
-rw-r--r-- | fpdfsdk/pwl/cpwl_edit.h | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit.cpp b/fpdfsdk/pwl/cpwl_edit.cpp index f2ed03dea4..6c867ca456 100644 --- a/fpdfsdk/pwl/cpwl_edit.cpp +++ b/fpdfsdk/pwl/cpwl_edit.cpp @@ -126,10 +126,6 @@ bool CPWL_Edit::CanSelectAll() const { return GetSelectWordRange() != m_pEdit->GetWholeWordRange(); } -bool CPWL_Edit::CanClear() const { - return !IsReadOnly() && m_pEdit->IsSelected(); -} - bool CPWL_Edit::CanCopy() const { return !HasFlag(PES_PASSWORD) && !HasFlag(PES_NOREAD) && m_pEdit->IsSelected(); @@ -674,11 +670,6 @@ CPVT_WordRange CPWL_Edit::GetLatinWordsRange( return GetSameWordsRange(place, true, false); } -CPVT_WordRange CPWL_Edit::GetArabicWordsRange( - const CPVT_WordPlace& place) const { - return GetSameWordsRange(place, false, true); -} - #define PWL_ISARABICWORD(word) \ ((word >= 0x0600 && word <= 0x06FF) || (word >= 0xFB50 && word <= 0xFEFC)) diff --git a/fpdfsdk/pwl/cpwl_edit.h b/fpdfsdk/pwl/cpwl_edit.h index 9c6f5e8da1..3f9cd433f5 100644 --- a/fpdfsdk/pwl/cpwl_edit.h +++ b/fpdfsdk/pwl/cpwl_edit.h @@ -74,7 +74,6 @@ class CPWL_Edit : public CPWL_EditCtrl { void SetCharSpace(float fCharSpace); bool CanSelectAll() const; - bool CanClear() const; bool CanCopy() const; bool CanCut() const; @@ -122,7 +121,6 @@ class CPWL_Edit : public CPWL_EditCtrl { const CPVT_WordRange& wr2); CPVT_WordRange GetLatinWordsRange(const CFX_PointF& point) const; CPVT_WordRange GetLatinWordsRange(const CPVT_WordPlace& place) const; - CPVT_WordRange GetArabicWordsRange(const CPVT_WordPlace& place) const; CPVT_WordRange GetSameWordsRange(const CPVT_WordPlace& place, bool bLatin, bool bArabic) const; |