summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2014-03-12 23:41:33 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2014-03-12 23:41:33 +0000
commit2d43266d790e7e0a1262fe9b22ce7c2897c2ab7a (patch)
treedca719b8936e9e9e1b8e6f68aa0d80e0db282ab5 /src
parentDisconnect before destroying URI (diff)
downloadinkscape-2d43266d790e7e0a1262fe9b22ce7c2897c2ab7a.tar.gz
inkscape-2d43266d790e7e0a1262fe9b22ce7c2897c2ab7a.zip
Remove redundant variable from SPFeImage
(bzr r13141)
Diffstat (limited to 'src')
-rw-r--r--src/filters/image.cpp7
-rw-r--r--src/filters/image.h1
2 files changed, 2 insertions, 6 deletions
diff --git a/src/filters/image.cpp b/src/filters/image.cpp
index 6e50a0e3c..116939e0f 100644
--- a/src/filters/image.cpp
+++ b/src/filters/image.cpp
@@ -42,7 +42,6 @@ namespace {
}
SPFeImage::SPFeImage() : SPFilterPrimitive() {
- this->document = NULL;
this->href = NULL;
this->from_element = 0;
this->SVGElemRef = NULL;
@@ -60,10 +59,8 @@ SPFeImage::~SPFeImage() {
* our name must be associated with a repr via "sp_object_type_register". Best done through
* sp-object-repr.cpp's repr_name_entries array.
*/
-void SPFeImage::build(SPDocument *document, Inkscape::XML::Node *repr) {
- // Save document reference so we can load images with relative paths.
- this->document = document;
-
+void SPFeImage::build(SPDocument *document, Inkscape::XML::Node *repr)
+{
SPFilterPrimitive::build(document, repr);
/*LOAD ATTRIBUTES FROM REPR HERE*/
diff --git a/src/filters/image.h b/src/filters/image.h
index 452e08134..9299f259e 100644
--- a/src/filters/image.h
+++ b/src/filters/image.h
@@ -32,7 +32,6 @@ public:
unsigned int aspect_align : 4;
unsigned int aspect_clip : 1;
- SPDocument *document;
bool from_element;
SPItem* SVGElem;
Inkscape::URIReference* SVGElemRef;