summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/document.cpp b/src/document.cpp
index e66089fed..4dd0f3d21 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -118,8 +118,6 @@ SPDocument::~SPDocument() {
collectOrphans();
if (priv) {
- inkscape_remove_document(this);
-
if (priv->partial) {
sp_repr_free_log(priv->partial);
priv->partial = NULL;
@@ -315,7 +313,6 @@ sp_document_create(Inkscape::XML::Document *rdoc,
document->_selection_changed_connection = Inkscape::NSApplication::Editor::connectSelectionChanged (sigc::mem_fun (*document, &SPDocument::reset_key));
document->_desktop_activated_connection = Inkscape::NSApplication::Editor::connectDesktopActivated (sigc::mem_fun (*document, &SPDocument::reset_key));
}
- inkscape_add_document(document);
return document;
}
@@ -402,7 +399,6 @@ sp_document_new_from_mem(gchar const *buffer, gint length, unsigned int keepaliv
SPDocument *sp_document_new_dummy() {
SPDocument *document = new SPDocument();
- inkscape_add_document(document);
return document;
}