vcl PDFiumLibraryTest: clean up not needed HAVE_FEATURE_PDFIUM ifdefs

This was already conditional in Module_vcl, so no need to have a
duplicated check here.

Which allows finally removing the HAVE_FEATURE_PDFIUM ifdef completely.

New code can just call vcl::pdf::PDFiumLibrary::get() at runtime and see
if the result is nullptr or not.

Change-Id: I36508181865a31618e48cf7c2680d75465130dd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114108
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
Miklos Vajna
2021-04-15 09:07:48 +02:00
parent 209d07ff2d
commit 9e63e22c4d
3 changed files with 0 additions and 12 deletions
-5
View File
@@ -131,11 +131,6 @@
*/
#define HAVE_FEATURE_NSS 0
/*
* Whether pdfium is available
*/
#define HAVE_FEATURE_PDFIUM 0
/*
* Whether poppler is available
*/
-1
View File
@@ -11627,7 +11627,6 @@ ENABLE_PDFIUM=
if test \( -z "$enable_pdfium" -a "$ENABLE_PDFIMPORT" = "TRUE" \) -o "$enable_pdfium" = yes; then
AC_MSG_RESULT([yes])
ENABLE_PDFIUM=TRUE
AC_DEFINE(HAVE_FEATURE_PDFIUM)
BUILD_TYPE="$BUILD_TYPE PDFIUM"
else
AC_MSG_RESULT([no])
-6
View File
@@ -7,10 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <config_features.h>
#if HAVE_FEATURE_PDFIUM
#include <string_view>
#include <cppunit/TestAssert.h>
@@ -406,6 +402,4 @@ CPPUNIT_TEST_SUITE_REGISTRATION(PDFiumLibraryTest);
CPPUNIT_PLUGIN_IMPLEMENT();
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */