[poppler] 2 commits - .gitignore poppler/ABWOutputDev.cc

Krzysztof Kowalczyk kjk at kemper.freedesktop.org
Sun Sep 23 20:42:54 PDT 2007


 .gitignore              |    1 +
 poppler/ABWOutputDev.cc |   10 ++--------
 2 files changed, 3 insertions(+), 8 deletions(-)

New commits:
diff-tree 5a1f670a4d16affeed86cdf643ab22f481caa3a5 (from c156aed7234f82dea4cb384c1b8a7acdd34545be)
Author: Krzysztof Kowalczyk <kkowalczyk at kjkubu.(none)>
Date:   Sun Sep 23 20:42:59 2007 -0700

    ignore *.o files

diff --git a/.gitignore b/.gitignore
index 3151685..11d96b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,4 @@ poppler-splash.pc
 poppler.pc
 stamp-h1
 gtk-doc.make
+*.o
diff-tree c156aed7234f82dea4cb384c1b8a7acdd34545be (from d0bdef4752be5fa609a0766ee87aa54d51611d9a)
Author: Krzysztof Kowalczyk <kkowalczyk at kjkubu.(none)>
Date:   Sun Sep 23 20:41:19 2007 -0700

    remove unused variables

diff --git a/poppler/ABWOutputDev.cc b/poppler/ABWOutputDev.cc
index e600f89..0c8f9d5 100644
--- a/poppler/ABWOutputDev.cc
+++ b/poppler/ABWOutputDev.cc
@@ -116,7 +116,6 @@ void ABWOutputDev::recursiveXYC(xmlNodeP
   splits the page using splitNodes on that whitespace. It calls itself again
   with both the halves*/
   float bhs, bvs, X1, X2, Y1, Y2;
-  xmlNodePtr N_cur;
 
   bvs = getBiggestSeperator(nodeset, VERTICAL, &X1, &X2);
   bhs = getBiggestSeperator(nodeset, HORIZONTAL, &Y1, &Y2);
@@ -259,17 +258,15 @@ float ABWOutputDev::getBiggestSeperator(
 
 void ABWOutputDev::updateFont(GfxState *state) {
   char buf[160];
-  double x,y;
   xmlNodePtr N_cur;
   GfxFont *font;
   bool found = false;
-  xmlChar val[8];
   bool isBold, isItalic, S_isBold, S_isItalic;
   isBold = isItalic = S_isBold =  S_isItalic = false;
   font = state->getFont();
   GooString *ftName;
   char *fnEnd, *fnName;
-  int fnLength, fnStart, ftSize;
+  int fnStart, ftSize;
   //the first time this function is called there is no funt.
   //Fixme: find out if that isn'y a bug
   if (font){
@@ -431,14 +428,12 @@ void ABWOutputDev::endWord(){
 }
 
 void ABWOutputDev::beginTextBlock(GfxState *state, double x, double y){
-  char buf[20];
   endTextBlock();
   N_Block = xmlNewChild(N_page, NULL, BAD_CAST "Textblock", NULL);
   beginWord(state,x,y);
 }
 
 void ABWOutputDev::endTextBlock(){
-  char buf[20];
   if (N_Block) {
     endWord();
     N_Block = NULL;  
@@ -458,7 +453,6 @@ void ABWOutputDev::interpretXYTree(){
 
 void ABWOutputDev::ATP_recursive(xmlNodePtr N_parent){
   xmlNodePtr N_first, N_second, N_line, N_tempCol, N_tempColset;
-  char buf[20];
 
   N_first  = N_parent->children;
   if (!N_first)
@@ -592,7 +586,7 @@ void ABWOutputDev::ATP_recursive(xmlNode
     }
     break;
   default:
-    double tX1=0, tX2=0, tY1=0, tY2=0;
+    //double tX1=0, tX2=0, tY1=0, tY2=0;
     //fprintf(stderr,"case default\n");
     N_line = xmlNewChild(N_Block, NULL, BAD_CAST "line", NULL);
     while (N_first){


More information about the poppler mailing list