Remove GlobalParams::setPSFile
It had a setter but not a getter so wasn't used for anything
diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index 5c355da..2f8717a 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -574,7 +574,6 @@
psShrinkLarger = gTrue;
psCenter = gTrue;
psLevel = psLevel2;
- psFile = NULL;
textEncoding = new GooString("UTF-8");
#if defined(_WIN32)
textEOL = eolDOS;
@@ -777,9 +776,6 @@
deleteGooHash(substFiles, GooString);
#endif
delete sysFonts;
- if (psFile) {
- delete psFile;
- }
delete textEncoding;
GooHashIter *iter;
@@ -1663,15 +1659,6 @@
unlockGlobalParams;
}
-void GlobalParams::setPSFile(char *file) {
- lockGlobalParams;
- if (psFile) {
- delete psFile;
- }
- psFile = new GooString(file);
- unlockGlobalParams;
-}
-
void GlobalParams::setPSExpandSmaller(GBool expand) {
lockGlobalParams;
psExpandSmaller = expand;
diff --git a/poppler/GlobalParams.h b/poppler/GlobalParams.h
index cd712e7..8114b2e 100644
--- a/poppler/GlobalParams.h
+++ b/poppler/GlobalParams.h
@@ -177,7 +177,6 @@
//----- functions to set parameters
void addFontFile(GooString *fontName, GooString *path);
- void setPSFile(char *file);
void setPSExpandSmaller(GBool expand);
void setPSShrinkLarger(GBool shrink);
void setPSCenter(GBool center);
@@ -250,7 +249,6 @@
GooHash *fontFiles; // font files: font name mapped to path
// [GString]
SysFontList *sysFonts; // system fonts
- GooString *psFile; // PostScript file or command (for xpdf)
GBool psExpandSmaller; // expand smaller pages to fill paper
GBool psShrinkLarger; // shrink larger pages to fit paper
GBool psCenter; // center pages on the paper