[poppler] fofi/FoFiType1.cc fofi/FoFiType1.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 12 23:53:28 UTC 2022


 fofi/FoFiType1.cc |   11 -----------
 fofi/FoFiType1.h  |    5 +----
 2 files changed, 1 insertion(+), 15 deletions(-)

New commits:
commit a9e1987591ed3896e18a81d0b66f65adf66f41cb
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Dec 13 00:48:59 2022 +0100

    Remove unused FoFiType1::load function

diff --git a/fofi/FoFiType1.cc b/fofi/FoFiType1.cc
index 3fcac6cc..949be3da 100644
--- a/fofi/FoFiType1.cc
+++ b/fofi/FoFiType1.cc
@@ -47,17 +47,6 @@ FoFiType1 *FoFiType1::make(const unsigned char *fileA, int lenA)
     return new FoFiType1(fileA, lenA, false);
 }
 
-FoFiType1 *FoFiType1::load(const char *fileName)
-{
-    char *fileA;
-    int lenA;
-
-    if (!(fileA = FoFiBase::readFile(fileName, &lenA))) {
-        return nullptr;
-    }
-    return new FoFiType1((unsigned char *)fileA, lenA, true);
-}
-
 FoFiType1::FoFiType1(const unsigned char *fileA, int lenA, bool freeFileDataA) : FoFiBase(fileA, lenA, freeFileDataA)
 {
     name = nullptr;
diff --git a/fofi/FoFiType1.h b/fofi/FoFiType1.h
index 15e8ac02..1bb64e4e 100644
--- a/fofi/FoFiType1.h
+++ b/fofi/FoFiType1.h
@@ -13,7 +13,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2018 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2018, 2022 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2022 Oliver Sander <oliver.sander at tu-dresden.de>
 //
 // To see a description of the changes please see the Changelog file that
@@ -36,9 +36,6 @@ public:
     // Create a FoFiType1 object from a memory buffer.
     static FoFiType1 *make(const unsigned char *fileA, int lenA);
 
-    // Create a FoFiType1 object from a file on disk.
-    static FoFiType1 *load(const char *fileName);
-
     ~FoFiType1() override;
 
     // Return the font name.


More information about the poppler mailing list