diff --git a/src/CanvasGradient.cc b/src/CanvasGradient.cc index 25e4fc2..0686cfc 100644 --- a/src/CanvasGradient.cc +++ b/src/CanvasGradient.cc @@ -101,8 +101,7 @@ Gradient::AddColorStop(const Arguments &args) { * Initialize linear gradient. */ -Gradient::Gradient(double x0, double y0, double x1, double y1): - _x0(x0), _y0(y0), _x1(x1), _y1(y1) { +Gradient::Gradient(double x0, double y0, double x1, double y1) { _pattern = cairo_pattern_create_linear(x0, y0, x1, y1); } @@ -110,8 +109,7 @@ Gradient::Gradient(double x0, double y0, double x1, double y1): * Initialize radial gradient. */ -Gradient::Gradient(double x0, double y0, double r0, double x1, double y1, double r1): - _x0(x0), _y0(y0), _x1(x1), _y1(y1), _r0(r0), _r1(r1) { +Gradient::Gradient(double x0, double y0, double r0, double x1, double y1, double r1) { _pattern = cairo_pattern_create_radial(x0, y0, r0, x1, y1, r1); } diff --git a/src/CanvasGradient.h b/src/CanvasGradient.h index db17096..79791f2 100644 --- a/src/CanvasGradient.h +++ b/src/CanvasGradient.h @@ -22,7 +22,6 @@ class Gradient: public node::ObjectWrap { private: ~Gradient(); - double _x0, _y0, _x1, _y1, _r0, _r1; cairo_pattern_t *_pattern; };