aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <>2023-09-13 09:32:15 +0200
committerThomas <>2023-09-13 09:32:15 +0200
commit2ad060c388e6977587951dec8c9c2bc5a3b17d56 (patch)
treedbf73dd7ea594c7376b68f80a89fb0d1769849ac
parent5fc01be0bac1394e9a48f1631679485ab5a2fdc4 (diff)
downloadpdf-as-4-2ad060c388e6977587951dec8c9c2bc5a3b17d56.tar.gz
pdf-as-4-2ad060c388e6977587951dec8c9c2bc5a3b17d56.tar.bz2
pdf-as-4-2ad060c388e6977587951dec8c9c2bc5a3b17d56.zip
chore(core): remove unused code
-rw-r--r--pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java
index 891ebe39..53b87d86 100644
--- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java
+++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java
@@ -1,14 +1,10 @@
package at.gv.egiz.pdfas.lib.impl.pdfbox2;
import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
import javax.activation.DataSource;
-import org.apache.pdfbox.io.MemoryUsageSetting;
import org.apache.pdfbox.pdmodel.PDDocument;
-import org.apache.pdfbox.pdmodel.font.PDFont;
import at.gv.egiz.pdfas.lib.impl.stamping.pdfbox2.PDFAsFontCache;
import at.gv.egiz.pdfas.lib.impl.status.OperationStatus;
@@ -17,9 +13,7 @@ import at.gv.egiz.pdfas.lib.impl.status.PDFObject;
public class PDFBOXObject extends PDFObject {
private PDDocument doc;
-
- private Map<String, PDFont> fontCache = new HashMap<String, PDFont>();
-
+
private PDFAsFontCache sigBlockFontCache = new PDFAsFontCache();
public PDFAsFontCache getSigBlockFontCache() {
@@ -54,11 +48,6 @@ public class PDFBOXObject extends PDFObject {
}
}
- private MemoryUsageSetting getMemoryUsageSettings() {
- // TODO: allow fine tuning of memory usage (divided main memory vs file memory)
- return MemoryUsageSetting.setupMainMemoryOnly();
- }
-
public void setOriginalDocument(DataSource originalDocument) throws IOException {
this.originalDocument = originalDocument;
if(doc != null) {