Remove CPDF_TextObject::RecalcPositionData().

It is just a trivial wrapper around CalcPositionData().

Change-Id: I2dcb374b6f77b9298441095fdd177262a5bb6587
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/83470
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fpdfapi/page/cpdf_textobject.cpp b/core/fpdfapi/page/cpdf_textobject.cpp
index edc2f5f..4b50f53 100644
--- a/core/fpdfapi/page/cpdf_textobject.cpp
+++ b/core/fpdfapi/page/cpdf_textobject.cpp
@@ -216,7 +216,7 @@
 
 void CPDF_TextObject::SetText(const ByteString& str) {
   SetSegments(&str, std::vector<float>(), 1);
-  RecalcPositionData();
+  CalcPositionData(/*horz_scale=*/1.0f);
   SetDirty(true);
 }
 
@@ -334,7 +334,3 @@
 
   return ret;
 }
-
-void CPDF_TextObject::RecalcPositionData() {
-  CalcPositionData(1);
-}
diff --git a/core/fpdfapi/page/cpdf_textobject.h b/core/fpdfapi/page/cpdf_textobject.h
index e607d18..67a42ca 100644
--- a/core/fpdfapi/page/cpdf_textobject.h
+++ b/core/fpdfapi/page/cpdf_textobject.h
@@ -63,8 +63,6 @@
   void SetText(const ByteString& str);
   void SetPosition(const CFX_PointF& pos) { m_Pos = pos; }
 
-  void RecalcPositionData();
-
   const std::vector<uint32_t>& GetCharCodes() const { return m_CharCodes; }
   const std::vector<float>& GetCharPositions() const { return m_CharPos; }