summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2022-12-13 00:48:59 +0100
committerAlbert Astals Cid <aacid@kde.org>2022-12-13 00:49:28 +0100
commita9e1987591ed3896e18a81d0b66f65adf66f41cb (patch)
tree8baef12059dbd10bd402b86d006a6da052bb299e
parenta563801e1a6be5e70645472d82f4ba8534b454d1 (diff)
Remove unused FoFiType1::load function
-rw-r--r--fofi/FoFiType1.cc11
-rw-r--r--fofi/FoFiType1.h5
2 files changed, 1 insertions, 15 deletions
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@kde.org>
+// Copyright (C) 2018, 2022 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2022 Oliver Sander <oliver.sander@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.