Remove declare but unused Object instances
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 373cddb..15c86a0 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -1837,8 +1837,6 @@
AnnotPopup::AnnotPopup(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
- Object obj1;
-
type = typePopup;
annotObj.dictSet ("Subtype", Object(objName, "Popup"));
@@ -2163,8 +2161,6 @@
}
void AnnotText::setOpen(GBool openA) {
- Object obj1;
-
open = openA;
update ("Open", Object(open));
}
@@ -2502,8 +2498,6 @@
//------------------------------------------------------------------------
AnnotLink::AnnotLink(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
- Object obj1;
-
type = typeLink;
annotObj.dictSet ("Subtype", Object(objName, "Link"));
initialize (docA, annotObj.getDict());
@@ -2602,8 +2596,6 @@
//------------------------------------------------------------------------
AnnotFreeText::AnnotFreeText(PDFDoc *docA, PDFRectangle *rect, GooString *da) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
type = typeFreeText;
annotObj.dictSet ("Subtype", Object(objName, "FreeText"));
@@ -2749,7 +2741,6 @@
}
void AnnotFreeText::setQuadding(AnnotFreeTextQuadding new_quadding) {
- Object obj1;
quadding = new_quadding;
update ("Q", Object((int)quadding));
invalidateAppearance();
@@ -2996,8 +2987,6 @@
AnnotLine::AnnotLine(PDFDoc *docA, PDFRectangle *rect) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
type = typeLine;
annotObj.dictSet ("Subtype", Object(objName, "Line"));
@@ -3442,8 +3431,6 @@
//------------------------------------------------------------------------
AnnotTextMarkup::AnnotTextMarkup(PDFDoc *docA, PDFRectangle *rect, AnnotSubtype subType) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
switch (subType) {
case typeHighlight:
annotObj.dictSet ("Subtype", Object(objName, "Highlight"));
@@ -4991,8 +4978,6 @@
//------------------------------------------------------------------------
AnnotMovie::AnnotMovie(PDFDoc *docA, PDFRectangle *rect, Movie *movieA) :
Annot(docA, rect) {
- Object obj1;
-
type = typeMovie;
annotObj.dictSet ("Subtype", Object(objName, "Movie"));
@@ -5127,8 +5112,6 @@
//------------------------------------------------------------------------
AnnotScreen::AnnotScreen(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
- Object obj1;
-
type = typeScreen;
annotObj.dictSet ("Subtype", Object(objName, "Screen"));
@@ -5190,8 +5173,6 @@
//------------------------------------------------------------------------
AnnotStamp::AnnotStamp(PDFDoc *docA, PDFRectangle *rect) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
type = typeStamp;
annotObj.dictSet ("Subtype", Object(objName, "Stamp"));
initialize(docA, annotObj.getDict());
@@ -5235,8 +5216,6 @@
//------------------------------------------------------------------------
AnnotGeometry::AnnotGeometry(PDFDoc *docA, PDFRectangle *rect, AnnotSubtype subType) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
switch (subType) {
case typeSquare:
annotObj.dictSet ("Subtype", Object(objName, "Square"));
@@ -5447,8 +5426,6 @@
//------------------------------------------------------------------------
AnnotPolygon::AnnotPolygon(PDFDoc *docA, PDFRectangle *rect, AnnotSubtype subType) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
switch (subType) {
case typePolygon:
annotObj.dictSet ("Subtype", Object(objName, "Polygon"));
@@ -5716,8 +5693,6 @@
//------------------------------------------------------------------------
AnnotCaret::AnnotCaret(PDFDoc *docA, PDFRectangle *rect) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
type = typeCaret;
annotObj.dictSet ("Subtype", Object(objName, "Caret"));
@@ -5767,14 +5742,11 @@
//------------------------------------------------------------------------
AnnotInk::AnnotInk(PDFDoc *docA, PDFRectangle *rect) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
type = typeInk;
annotObj.dictSet ("Subtype", Object(objName, "Ink"));
// Store dummy path with one null vertex only
- Object obj3, obj4;
Array *inkList = new Array(doc->getXRef());
Array *vList = new Array(doc->getXRef());
vList->add(Object(0.));
@@ -5930,8 +5902,6 @@
//------------------------------------------------------------------------
AnnotFileAttachment::AnnotFileAttachment(PDFDoc *docA, PDFRectangle *rect, GooString *filename) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
type = typeFileAttachment;
annotObj.dictSet("Subtype", Object(objName, "FileAttachment"));
@@ -6135,8 +6105,6 @@
//------------------------------------------------------------------------
AnnotSound::AnnotSound(PDFDoc *docA, PDFRectangle *rect, Sound *soundA) :
AnnotMarkup(docA, rect) {
- Object obj1;
-
type = typeSound;
annotObj.dictSet ("Subtype", Object(objName, "Sound"));
@@ -6288,8 +6256,6 @@
//------------------------------------------------------------------------
Annot3D::Annot3D(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
- Object obj1;
-
type = type3D;
annotObj.dictSet ("Subtype", Object(objName, "3D"));
@@ -6406,8 +6372,6 @@
//------------------------------------------------------------------------
AnnotRichMedia::AnnotRichMedia(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
- Object obj1;
-
type = typeRichMedia;
annotObj.dictSet ("Subtype", Object(objName, "RichMedia"));
diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index 69b88dc..2864f2a 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -394,7 +394,6 @@
CairoFreeTypeFont *CairoFreeTypeFont::create(GfxFont *gfxFont, XRef *xref,
FT_Library lib, GBool useCIDs) {
- Object refObj, strObj;
GooString *fileName;
char *fileNameC;
char *font_data;
@@ -736,7 +735,6 @@
CairoType3Font *CairoType3Font::create(GfxFont *gfxFont, PDFDoc *doc,
CairoFontEngine *fontEngine,
GBool printing, XRef *xref) {
- Object refObj, strObj;
type3_font_info_t *info;
cairo_font_face_t *font_face;
Ref ref;
diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index d01b23d..c423dea 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -462,7 +462,6 @@
FileSpec *Catalog::embeddedFile(int i)
{
- Object efDict;
catalogLocker();
Object *obj = getEmbeddedFileNameTree()->getValue(i);
FileSpec *embeddedFile = nullptr;
diff --git a/poppler/Form.cc b/poppler/Form.cc
index 71397c4..11b16c9 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -1433,7 +1433,7 @@
#endif
void FormFieldChoice::updateSelection() {
- Object objV, obj1;
+ Object objV;
Object objI(objNull);
if (edit && editedChoice) {
diff --git a/poppler/Lexer.cc b/poppler/Lexer.cc
index 2ed197d..a509083 100644
--- a/poppler/Lexer.cc
+++ b/poppler/Lexer.cc
@@ -86,7 +86,6 @@
xref = xrefA;
if (obj->isStream()) {
- Object obj2;
streams = new Array(xref);
freeArray = gTrue;
streams->add(obj->copy());
diff --git a/poppler/Link.cc b/poppler/Link.cc
index 1bf5728..326cfb9 100644
--- a/poppler/Link.cc
+++ b/poppler/Link.cc
@@ -671,8 +671,6 @@
if (!js && (operationCode < 0 || operationCode > 4)) {
error(errSyntaxWarning, -1, "Invalid Rendition Action: unrecognized operation valued: {0:d}", operationCode);
} else {
- Object obj1;
-
// retrieve rendition object
renditionObj = obj->dictLookup("R");
if (renditionObj.isDict()) {
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index 8aefc0b..16b4d0f 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -1547,7 +1547,6 @@
alreadyMarkedDicts->insert(dict);
}
- Object obj1;
for (int i=0; i<dict->getLength(); i++) {
const char *key = dict->getKey(i);
if (strcmp(key, "Annots") != 0) {
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 94e3bc7..50b7824 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -1998,7 +1998,6 @@
SplashFontFile *fontFile;
SplashFontSrc *fontsrc = nullptr;
FoFiTrueType *ff;
- Object refObj, strObj;
GooString *fileName;
char *tmpBuf;
int tmpBufLen;
@@ -3765,7 +3764,6 @@
int maskHeight, GBool maskInvert,
GBool maskInterpolate) {
GfxImageColorMap *maskColorMap;
- Object decodeLow, decodeHigh;
double *ctm;
SplashCoord mat[6];
SplashOutMaskedImageData imgData;
diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index 3decd23..183c29f 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -1722,7 +1722,6 @@
}
// Mark objects referred from the Encrypt dict as Unencrypted
- Object obj = trailerDict.dictLookupNF("Encrypt");
markUnencrypted();
}
diff --git a/qt5/src/ArthurOutputDev.cc b/qt5/src/ArthurOutputDev.cc
index dccd07a..6007ced 100644
--- a/qt5/src/ArthurOutputDev.cc
+++ b/qt5/src/ArthurOutputDev.cc
@@ -439,7 +439,6 @@
SplashFontFile *fontFile;
SplashFontSrc *fontsrc = nullptr;
FoFiTrueType *ff;
- Object refObj, strObj;
GooString *fileName;
char *tmpBuf;
int tmpBufLen = 0;
diff --git a/utils/JSInfo.cc b/utils/JSInfo.cc
index 6f2f41b..a67c3ae 100644
--- a/utils/JSInfo.cc
+++ b/utils/JSInfo.cc
@@ -101,7 +101,6 @@
void JSInfo::scan(int nPages) {
Page *page;
Annots *annots;
- Object obj1, obj2;
int lastPage;
hasJS = gFalse;
diff --git a/utils/pdfinfo.cc b/utils/pdfinfo.cc
index 12b63ee..985761e 100644
--- a/utils/pdfinfo.cc
+++ b/utils/pdfinfo.cc
@@ -602,7 +602,6 @@
GooString *fileName;
GooString *ownerPW, *userPW;
UnicodeMap *uMap;
- Object info;
FILE *f;
GBool ok;
int exitCode;
diff --git a/utils/pdfseparate.cc b/utils/pdfseparate.cc
index 4da3bba..bfcd074 100644
--- a/utils/pdfseparate.cc
+++ b/utils/pdfseparate.cc
@@ -145,7 +145,6 @@
int
main (int argc, char *argv[])
{
- Object info;
GBool ok;
int exitCode;