svg_loader: code refactoring

remove more unused declarations...
This commit is contained in:
Hermet Park 2021-06-30 14:09:09 +09:00 committed by Hermet Park
parent 3e7888b538
commit 571a1e5caa

View file

@ -25,30 +25,24 @@
#include "tvgCommon.h" #include "tvgCommon.h"
#include "tvgArray.h" #include "tvgArray.h"
struct SvgNode;
struct SvgStyleGradient;
enum class SvgNodeType enum class SvgNodeType
{ {
Doc, Doc,
G, G,
Defs, Defs,
//Switch, //Not support
Animation,
Arc,
Circle, Circle,
Ellipse, Ellipse,
Image,
Line, Line,
Path, Path,
Polygon, Polygon,
Polyline, Polyline,
Rect, Rect,
Text,
TextArea,
Tspan,
Use, Use,
Video,
ClipPath, ClipPath,
Mask, Mask,
//Custome_command, //Not support
Unknown Unknown
}; };
@ -63,7 +57,6 @@ enum class SvgLengthType
In, In,
}; };
enum class SvgFillFlags enum class SvgFillFlags
{ {
Paint = 0x01, Paint = 0x01,
@ -91,20 +84,6 @@ enum class SvgGradientType
Radial Radial
}; };
enum class SvgStyleType
{
Quality,
Fill,
ViewportFill,
Font,
Stroke,
SolidColor,
Gradient,
Transform,
Opacity,
CompOp
};
enum class SvgFillRule enum class SvgFillRule
{ {
Winding = 0, Winding = 0,
@ -120,10 +99,6 @@ enum class SvgParserLengthType
Other Other
}; };
struct SvgNode;
struct SvgStyleGradient;
struct SvgDocNode struct SvgDocNode
{ {
float w; float w;
@ -145,9 +120,6 @@ struct SvgDefsNode
Array<SvgStyleGradient*> gradients; Array<SvgStyleGradient*> gradients;
}; };
struct SvgArcNode
{
};
struct SvgEllipseNode struct SvgEllipseNode
{ {
@ -298,7 +270,6 @@ struct SvgNode
SvgGNode g; SvgGNode g;
SvgDocNode doc; SvgDocNode doc;
SvgDefsNode defs; SvgDefsNode defs;
SvgArcNode arc;
SvgCircleNode circle; SvgCircleNode circle;
SvgEllipseNode ellipse; SvgEllipseNode ellipse;
SvgPolygonNode polygon; SvgPolygonNode polygon;