De-duplicate CPVT_VariableText::GetAlignment().

No point in having a const implementation in the header and a non-const
implementation in the .cpp file. The const version is suitable for all
our needs.

Change-Id: I13730ff387b4ba600b30061e6a8d1fcec47ced50
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/84050
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fpdfdoc/cpvt_variabletext.cpp b/core/fpdfdoc/cpvt_variabletext.cpp
index d79128f..2bf1aac 100644
--- a/core/fpdfdoc/cpvt_variabletext.cpp
+++ b/core/fpdfdoc/cpvt_variabletext.cpp
@@ -636,10 +636,6 @@
   return 0.0f;
 }
 
-int32_t CPVT_VariableText::GetAlignment() {
-  return m_nAlignment;
-}
-
 void CPVT_VariableText::ClearSectionRightWords(const CPVT_WordPlace& place) {
   CPVT_WordPlace wordplace = PrevLineHeaderPlace(place);
   if (!fxcrt::IndexInBounds(m_SectionArray, place.nSecIndex))
diff --git a/core/fpdfdoc/cpvt_variabletext.h b/core/fpdfdoc/cpvt_variabletext.h
index 8c6b3b2..029bc19 100644
--- a/core/fpdfdoc/cpvt_variabletext.h
+++ b/core/fpdfdoc/cpvt_variabletext.h
@@ -145,7 +145,6 @@
   float GetFontDescent(int32_t nFontIndex, float fFontSize) const;
   int32_t GetDefaultFontIndex();
   float GetLineLeading();
-  int32_t GetAlignment();
   float GetWordWidth(const CPVT_WordInfo& WordInfo) const;
   float GetWordWidth(int32_t nFontIndex,
                      uint16_t Word,