From ccd951a0896e15fb0c1e0324438dac149707a36b Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Thu, 25 Jan 2007 04:07:20 +0000 Subject: eliminate last uses of sp_repr_new* (bzr r2283) --- src/xml/repr.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/xml/repr.cpp') 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++ -- cgit v1.2.3