Remove an unused struct in AGG code.
The struct has a member variable that shadows a member variable of the
same name in the struct it inherits from.
Change-Id: I04a7c2e23c4431e08075ae55b442e03eaf8b5883
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/63131
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/third_party/agg23/0007-unused-struct.patch b/third_party/agg23/0007-unused-struct.patch
new file mode 100644
index 0000000..a1e2c89
--- /dev/null
+++ b/third_party/agg23/0007-unused-struct.patch
@@ -0,0 +1,19 @@
+diff --git a/third_party/agg23/agg_basics.h b/third_party/agg23/agg_basics.h
+index fc155561e..2a1c2af2f 100644
+--- a/third_party/agg23/agg_basics.h
++++ b/third_party/agg23/agg_basics.h
+@@ -266,14 +266,6 @@ struct point_type {
+ point_type() {}
+ point_type(float x_, float y_, unsigned flag_ = 0) : x(x_), y(y_), flag(flag_) {}
+ };
+-struct point_type_flag : public point_type {
+- unsigned flag;
+- point_type_flag()
+- {
+- flag = 0;
+- }
+- point_type_flag(float x_, float y_, unsigned flag_ = 0) : point_type(x_, y_), flag(flag_) {}
+-};
+ struct vertex_type {
+ float x, y;
+ unsigned cmd;
diff --git a/third_party/agg23/README.pdfium b/third_party/agg23/README.pdfium
index 12de429..0319903 100644
--- a/third_party/agg23/README.pdfium
+++ b/third_party/agg23/README.pdfium
@@ -22,3 +22,5 @@
agg_array.h.
0006-ubsan-sweep-scanline-error.patch: Fix UBSan integer overflow error in
sweep_scanline.
+0007-unused-struct.patch: Remove unused struct point_type_flag, which has a
+shadow variable.
diff --git a/third_party/agg23/agg_basics.h b/third_party/agg23/agg_basics.h
index fc15556..2a1c2af 100644
--- a/third_party/agg23/agg_basics.h
+++ b/third_party/agg23/agg_basics.h
@@ -266,14 +266,6 @@
point_type() {}
point_type(float x_, float y_, unsigned flag_ = 0) : x(x_), y(y_), flag(flag_) {}
};
-struct point_type_flag : public point_type {
- unsigned flag;
- point_type_flag()
- {
- flag = 0;
- }
- point_type_flag(float x_, float y_, unsigned flag_ = 0) : point_type(x_, y_), flag(flag_) {}
-};
struct vertex_type {
float x, y;
unsigned cmd;