diff options
Diffstat (limited to 'src/xml/repr.cpp')
| -rw-r--r-- | src/xml/repr.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/xml/repr.cpp b/src/xml/repr.cpp index bd64afc34..c6943a252 100644 --- a/src/xml/repr.cpp +++ b/src/xml/repr.cpp @@ -60,7 +60,7 @@ sp_repr_new_comment(gchar const *comment) Inkscape::XML::Document * sp_repr_document_new(char const *rootname) { - Inkscape::XML::Document *doc = new Inkscape::XML::SimpleDocument(g_quark_from_static_string("xml")); + Inkscape::XML::Document *doc = new Inkscape::XML::SimpleDocument(); if (!strcmp(rootname, "svg:svg")) { doc->setAttribute("version", "1.0"); doc->setAttribute("standalone", "no"); @@ -76,25 +76,6 @@ sp_repr_document_new(char const *rootname) return doc; } -/// Returns new document having reprs as first child. -Inkscape::XML::Document * -sp_repr_document_new_list(GSList *reprs) -{ - g_assert(reprs != NULL); - - Inkscape::XML::Document *doc = sp_repr_document_new("void"); - doc->removeChild(doc->firstChild()); - - for ( GSList *iter = reprs ; iter ; iter = iter->next ) { - Inkscape::XML::Node *repr = (Inkscape::XML::Node *) iter->data; - doc->appendChild(repr); - } - - g_assert(sp_repr_document_root(doc) != NULL); - - return doc; -} - /* Local Variables: mode:c++ |
