Commit 7f550e88 authored by Albert Astals Cid's avatar Albert Astals Cid

Remove declare but unused Object instances

parent 4b237953
......@@ -1837,8 +1837,6 @@ void Annot::draw(Gfx *gfx, GBool printing) {
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::initialize(PDFDoc *docA, Dict *dict) {
}
void AnnotText::setOpen(GBool openA) {
Object obj1;
open = openA;
update ("Open", Object(open));
}
......@@ -2502,8 +2498,6 @@ void AnnotText::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
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 @@ void AnnotLink::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
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::setAppearanceString(GooString *new_string) {
}
void AnnotFreeText::setQuadding(AnnotFreeTextQuadding new_quadding) {
Object obj1;
quadding = new_quadding;
update ("Q", Object((int)quadding));
invalidateAppearance();
......@@ -2996,8 +2987,6 @@ Object AnnotFreeText::getAppearanceResDict() {
AnnotLine::AnnotLine(PDFDoc *docA, PDFRectangle *rect) :
AnnotMarkup(docA, rect) {
Object obj1;
type = typeLine;
annotObj.dictSet ("Subtype", Object(objName, "Line"));
......@@ -3442,8 +3431,6 @@ Object AnnotLine::getAppearanceResDict() {
//------------------------------------------------------------------------
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 @@ void AnnotWidget::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
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 @@ void AnnotMovie::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
AnnotScreen::AnnotScreen(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
Object obj1;
type = typeScreen;
annotObj.dictSet ("Subtype", Object(objName, "Screen"));
......@@ -5190,8 +5173,6 @@ LinkAction* AnnotScreen::getAdditionalAction(AdditionalActionsType type)
//------------------------------------------------------------------------
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 @@ void AnnotStamp::setIcon(GooString *new_icon) {
//------------------------------------------------------------------------
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 @@ void AnnotGeometry::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
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 @@ void AnnotPolygon::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
AnnotCaret::AnnotCaret(PDFDoc *docA, PDFRectangle *rect) :
AnnotMarkup(docA, rect) {
Object obj1;
type = typeCaret;
annotObj.dictSet ("Subtype", Object(objName, "Caret"));
......@@ -5767,14 +5742,11 @@ void AnnotCaret::setSymbol(AnnotCaretSymbol new_symbol) {
//------------------------------------------------------------------------
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 @@ void AnnotInk::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
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 @@ void AnnotFileAttachment::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
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 @@ void AnnotSound::draw(Gfx *gfx, GBool printing) {
//------------------------------------------------------------------------
Annot3D::Annot3D(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
Object obj1;
type = type3D;
annotObj.dictSet ("Subtype", Object(objName, "3D"));
......@@ -6406,8 +6372,6 @@ Annot3D::Activation::Activation(Dict *dict) {
//------------------------------------------------------------------------
AnnotRichMedia::AnnotRichMedia(PDFDoc *docA, PDFRectangle *rect) :
Annot(docA, rect) {
Object obj1;
type = typeRichMedia;
annotObj.dictSet ("Subtype", Object(objName, "RichMedia"));
......
......@@ -394,7 +394,6 @@ CairoFreeTypeFont::~CairoFreeTypeFont() { }
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 @@ _render_type3_glyph (cairo_scaled_font_t *scaled_font,
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;
......
......@@ -462,7 +462,6 @@ LinkDest *Catalog::getDestNameTreeDest(int i)
FileSpec *Catalog::embeddedFile(int i)
{
Object efDict;
catalogLocker();
Object *obj = getEmbeddedFileNameTree()->getValue(i);
FileSpec *embeddedFile = nullptr;
......
......@@ -1433,7 +1433,7 @@ void FormFieldChoice::print(int indent)
#endif
void FormFieldChoice::updateSelection() {
Object objV, obj1;
Object objV;
Object objI(objNull);
if (edit && editedChoice) {
......
......@@ -86,7 +86,6 @@ Lexer::Lexer(XRef *xrefA, Object *obj) {
xref = xrefA;
if (obj->isStream()) {
Object obj2;
streams = new Array(xref);
freeArray = gTrue;
streams->add(obj->copy());
......
......@@ -671,8 +671,6 @@ LinkRendition::LinkRendition(Object *obj) {
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()) {
......
......@@ -1547,7 +1547,6 @@ void PDFDoc::markDictionnary (Dict* dict, XRef * xRef, XRef *countRef, Guint num
alreadyMarkedDicts->insert(dict);
}
Object obj1;
for (int i=0; i<dict->getLength(); i++) {
const char *key = dict->getKey(i);
if (strcmp(key, "Annots") != 0) {
......
......@@ -1998,7 +1998,6 @@ void SplashOutputDev::doUpdateFont(GfxState *state) {
SplashFontFile *fontFile;
SplashFontSrc *fontsrc = nullptr;
FoFiTrueType *ff;
Object refObj, strObj;
GooString *fileName;
char *tmpBuf;
int tmpBufLen;
......@@ -3765,7 +3764,6 @@ void SplashOutputDev::drawMaskedImage(GfxState *state, Object *ref,
int maskHeight, GBool maskInvert,
GBool maskInterpolate) {
GfxImageColorMap *maskColorMap;
Object decodeLow, decodeHigh;
double *ctm;
SplashCoord mat[6];
SplashOutMaskedImageData imgData;
......
......@@ -1722,7 +1722,6 @@ void XRef::scanSpecialFlags() {
}
// Mark objects referred from the Encrypt dict as Unencrypted
Object obj = trailerDict.dictLookupNF("Encrypt");
markUnencrypted();
}
......
......@@ -439,7 +439,6 @@ void ArthurOutputDev::updateFont(GfxState *state)
SplashFontFile *fontFile;
SplashFontSrc *fontsrc = nullptr;
FoFiTrueType *ff;
Object refObj, strObj;
GooString *fileName;
char *tmpBuf;
int tmpBufLen = 0;
......
......@@ -101,7 +101,6 @@ void JSInfo::scanJS(int nPages, FILE *fout, UnicodeMap *uMap) {
void JSInfo::scan(int nPages) {
Page *page;
Annots *annots;
Object obj1, obj2;
int lastPage;
hasJS = gFalse;
......
......@@ -602,7 +602,6 @@ int main(int argc, char *argv[]) {
GooString *fileName;
GooString *ownerPW, *userPW;
UnicodeMap *uMap;
Object info;
FILE *f;
GBool ok;
int exitCode;
......
......@@ -145,7 +145,6 @@ static bool extractPages (const char *srcFileName, const char *destFileName) {
int
main (int argc, char *argv[])
{
Object info;
GBool ok;
int exitCode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment