Remove unused CPDF_VariableText::Iterator::PrevWord()

Its only caller is uncalled, so remove that, too.

Change-Id: I75c39cd9711f28745014fb257e01a92e02e493f7
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/79330
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fpdfdoc/cpdf_variabletext.cpp b/core/fpdfdoc/cpdf_variabletext.cpp
index ce48851..5b955e6 100644
--- a/core/fpdfdoc/cpdf_variabletext.cpp
+++ b/core/fpdfdoc/cpdf_variabletext.cpp
@@ -100,13 +100,6 @@
   return true;
 }
 
-bool CPDF_VariableText::Iterator::PrevWord() {
-  if (m_CurPos == m_pVT->GetBeginWordPlace())
-    return false;
-
-  m_CurPos = m_pVT->GetPrevWordPlace(m_CurPos);
-  return true;
-}
 
 bool CPDF_VariableText::Iterator::NextLine() {
   if (!pdfium::IndexInBounds(m_pVT->m_SectionArray, m_CurPos.nSecIndex))
diff --git a/core/fpdfdoc/cpdf_variabletext.h b/core/fpdfdoc/cpdf_variabletext.h
index 705b7d4..a1affc6 100644
--- a/core/fpdfdoc/cpdf_variabletext.h
+++ b/core/fpdfdoc/cpdf_variabletext.h
@@ -35,7 +35,6 @@
     ~Iterator();
 
     bool NextWord();
-    bool PrevWord();
     bool NextLine();
     bool GetWord(CPVT_Word& word) const;
     bool GetLine(CPVT_Line& line) const;
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.cpp b/fpdfsdk/pwl/cpwl_edit_impl.cpp
index c637fae..ec5499c 100644
--- a/fpdfsdk/pwl/cpwl_edit_impl.cpp
+++ b/fpdfsdk/pwl/cpwl_edit_impl.cpp
@@ -63,10 +63,6 @@
   return m_pVTIterator->NextWord();
 }
 
-bool CPWL_EditImpl_Iterator::PrevWord() {
-  return m_pVTIterator->PrevWord();
-}
-
 bool CPWL_EditImpl_Iterator::GetWord(CPVT_Word& word) const {
   DCHECK(m_pEdit);
 
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.h b/fpdfsdk/pwl/cpwl_edit_impl.h
index 6deb7bd..e38e849 100644
--- a/fpdfsdk/pwl/cpwl_edit_impl.h
+++ b/fpdfsdk/pwl/cpwl_edit_impl.h
@@ -421,7 +421,6 @@
   ~CPWL_EditImpl_Iterator();
 
   bool NextWord();
-  bool PrevWord();
   bool GetWord(CPVT_Word& word) const;
   bool GetLine(CPVT_Line& line) const;
   void SetAt(int32_t nWordIndex);