[poppler] poppler/Annot.cc poppler/Annot.h

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sat Mar 5 06:30:42 PST 2011


 poppler/Annot.cc |   22 ----------------------
 poppler/Annot.h  |   36 ------------------------------------
 2 files changed, 58 deletions(-)

New commits:
commit 2bf82f27bd9c8f97e5484ea97be661f65221163d
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sat Mar 5 15:30:01 2011 +0100

    annots: Remove unused class AnnotBorderStyle

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 2a7e6d0..bcbe50c 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -644,28 +644,6 @@ AnnotColor::AnnotColor(Array *array, int adjust) {
 }
 
 //------------------------------------------------------------------------
-// AnnotBorderStyle
-//------------------------------------------------------------------------
-
-AnnotBorderStyle::AnnotBorderStyle(AnnotBorderType typeA, double widthA,
-				   double *dashA, int dashLengthA,
-				   double rA, double gA, double bA) {
-  type = typeA;
-  width = widthA;
-  dash = dashA;
-  dashLength = dashLengthA;
-  r = rA;
-  g = gA;
-  b = bA;
-}
-
-AnnotBorderStyle::~AnnotBorderStyle() {
-  if (dash) {
-    gfree(dash);
-  }
-}
-
-//------------------------------------------------------------------------
 // AnnotIconFit
 //------------------------------------------------------------------------
 
diff --git a/poppler/Annot.h b/poppler/Annot.h
index dcdf9ce..3659abe 100644
--- a/poppler/Annot.h
+++ b/poppler/Annot.h
@@ -305,42 +305,6 @@ private:
 };
 
 //------------------------------------------------------------------------
-// AnnotBorderStyle
-//------------------------------------------------------------------------
-
-enum AnnotBorderType {
-  annotBorderSolid,
-  annotBorderDashed,
-  annotBorderBeveled,
-  annotBorderInset,
-  annotBorderUnderlined
-};
-
-class AnnotBorderStyle {
-public:
-
-  AnnotBorderStyle(AnnotBorderType typeA, double widthA,
-		   double *dashA, int dashLengthA,
-		   double rA, double gA, double bA);
-  ~AnnotBorderStyle();
-
-  AnnotBorderType getType() { return type; }
-  double getWidth() { return width; }
-  void getDash(double **dashA, int *dashLengthA)
-    { *dashA = dash; *dashLengthA = dashLength; }
-  void getColor(double *rA, double *gA, double *bA)
-    { *rA = r; *gA = g; *bA = b; }
-
-private:
-
-  AnnotBorderType type;
-  double width;
-  double *dash;
-  int dashLength;
-  double r, g, b;
-};
-
-//------------------------------------------------------------------------
 // AnnotIconFit
 //------------------------------------------------------------------------
 


More information about the poppler mailing list