summaryrefslogtreecommitdiffstats
path: root/src/sp-linear-gradient.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-08-03 01:03:43 +0000
committerMarkus Engel <markus.engel@tum.de>2013-08-03 01:03:43 +0000
commitbf4a1d2d49850170b936c30cfe2b30e798716406 (patch)
tree2632b534325df2eb92933f428979eeb8f5c52225 /src/sp-linear-gradient.cpp
parentreordered SPDesktop::set_event_context2; fixed last mismatched-tags (diff)
downloadinkscape-bf4a1d2d49850170b936c30cfe2b30e798716406.tar.gz
inkscape-bf4a1d2d49850170b936c30cfe2b30e798716406.zip
Cleaned up.
(bzr r11608.1.117)
Diffstat (limited to 'src/sp-linear-gradient.cpp')
-rw-r--r--src/sp-linear-gradient.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/sp-linear-gradient.cpp b/src/sp-linear-gradient.cpp
index 4305d1acf..4e7a08f4b 100644
--- a/src/sp-linear-gradient.cpp
+++ b/src/sp-linear-gradient.cpp
@@ -96,28 +96,6 @@ Inkscape::XML::Node* SPLinearGradient::write(Inkscape::XML::Document *xml_doc, I
return repr;
}
-
-/**
- * Directly set properties of linear gradient and request modified.
- */
-void
-sp_lineargradient_set_position(SPLinearGradient *lg,
- gdouble x1, gdouble y1,
- gdouble x2, gdouble y2)
-{
- g_return_if_fail(lg != NULL);
- g_return_if_fail(SP_IS_LINEARGRADIENT(lg));
-
- /* fixme: units? (Lauris) */
- lg->x1.set(SVGLength::NONE, x1, x1);
- lg->y1.set(SVGLength::NONE, y1, y1);
- lg->x2.set(SVGLength::NONE, x2, x2);
- lg->y2.set(SVGLength::NONE, y2, y2);
-
- lg->requestModified(SP_OBJECT_MODIFIED_FLAG);
-}
-
-
cairo_pattern_t* SPLinearGradient::pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity) {
this->ensureVector();