Browse Source

removed unneeded private fields

v1.x
pb82 12 years ago
parent
commit
ba3bb3137e
  1. 6
      src/CanvasGradient.cc
  2. 1
      src/CanvasGradient.h

6
src/CanvasGradient.cc

@ -101,8 +101,7 @@ Gradient::AddColorStop(const Arguments &args) {
* Initialize linear gradient. * Initialize linear gradient.
*/ */
Gradient::Gradient(double x0, double y0, double x1, double y1): Gradient::Gradient(double x0, double y0, double x1, double y1) {
_x0(x0), _y0(y0), _x1(x1), _y1(y1) {
_pattern = cairo_pattern_create_linear(x0, y0, x1, 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. * Initialize radial gradient.
*/ */
Gradient::Gradient(double x0, double y0, double r0, double x1, double y1, double r1): 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) {
_pattern = cairo_pattern_create_radial(x0, y0, r0, x1, y1, r1); _pattern = cairo_pattern_create_radial(x0, y0, r0, x1, y1, r1);
} }

1
src/CanvasGradient.h

@ -22,7 +22,6 @@ class Gradient: public node::ObjectWrap {
private: private:
~Gradient(); ~Gradient();
double _x0, _y0, _x1, _y1, _r0, _r1;
cairo_pattern_t *_pattern; cairo_pattern_t *_pattern;
}; };

Loading…
Cancel
Save