summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdf_text.cpp')
-rw-r--r--fpdfsdk/fpdf_text.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/fpdfsdk/fpdf_text.cpp b/fpdfsdk/fpdf_text.cpp
index a1bbbb4a7a..d8d3b2675b 100644
--- a/fpdfsdk/fpdf_text.cpp
+++ b/fpdfsdk/fpdf_text.cpp
@@ -40,14 +40,7 @@ FPDF_EXPORT FPDF_TEXTPAGE FPDF_CALLCONV FPDFText_LoadPage(FPDF_PAGE page) {
if (!pPDFPage)
return nullptr;
-#ifdef PDF_ENABLE_XFA
- CPDFXFA_Page* pPage = UnderlyingFromFPDFPage(page);
- auto* pContext = static_cast<CPDFXFA_Context*>(pPage->GetDocumentExtension());
- CPDF_ViewerPreferences viewRef(pContext->GetPDFDoc());
-#else // PDF_ENABLE_XFA
CPDF_ViewerPreferences viewRef(pPDFPage->GetDocument());
-#endif // PDF_ENABLE_XFA
-
CPDF_TextPage* textpage = new CPDF_TextPage(
pPDFPage, viewRef.IsDirectionR2L() ? FPDFText_Direction::Right
: FPDFText_Direction::Left);