From 86adb658843658969041a13bf6cf0cc950ffe8ed Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 15 Oct 2015 14:51:42 -0700 Subject: Fix layering violation in CPDF_Document::FromFPDFDocument(). Make this a function in the fpdfsdk/ layer, rather than a method in the core/ layer. Nothing in core should know about public FPDF types. BUG=pdfium:217 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1396283006 . --- core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/src/fpdfapi/fpdf_parser') diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp index b93cadd266..2dff766187 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp @@ -7,10 +7,6 @@ #include "../../../include/fpdfapi/fpdf_parser.h" #include "../../../include/fpdfapi/fpdf_module.h" -// static -CPDF_Document* CPDF_Document::FromFPDFDocument(FPDF_DOCUMENT document) { - return static_cast(document); -} CPDF_Document::CPDF_Document(CPDF_Parser* pParser) : CPDF_IndirectObjects(pParser) { -- cgit v1.2.3