From 76a95a959dea0f85eb8cc1f158527f0b9896e189 Mon Sep 17 00:00:00 2001 From: pjrm Date: Mon, 6 Apr 2009 23:17:08 +0000 Subject: [PATCH] Remove trivial wrapper function sp_repr_print that hasn't been used in years. --- src/extension/system.cpp | 2 -- src/xml/repr-io.cpp | 11 ----------- src/xml/repr.h | 2 +- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/extension/system.cpp b/src/extension/system.cpp index 390206f30..6442f2f7e 100644 --- a/src/extension/system.cpp +++ b/src/extension/system.cpp @@ -390,8 +390,6 @@ build_from_reprdoc(Inkscape::XML::Document *doc, Implementation::Implementation Inkscape::XML::Node *repr = doc->root(); - /* sp_repr_print(repr); */ - if (strcmp(repr->name(), INKSCAPE_EXTENSION_NS "inkscape-extension")) { g_warning("Extension definition started with <%s> instead of <" INKSCAPE_EXTENSION_NS "inkscape-extension>. Extension will not be created. See http://wiki.inkscape.org/wiki/index.php/Extensions for reference.\n", repr->name()); return NULL; diff --git a/src/xml/repr-io.cpp b/src/xml/repr-io.cpp index b9d0816c8..adeac9735 100644 --- a/src/xml/repr-io.cpp +++ b/src/xml/repr-io.cpp @@ -628,17 +628,6 @@ sp_repr_save_file (Document *doc, gchar const *filename, return TRUE; } -void -sp_repr_print (Node * repr) -{ - Inkscape::IO::StdOutputStream bout; - Inkscape::IO::OutputStreamWriter out(bout); - - sp_repr_write_stream (repr, out, 0, TRUE, GQuark(0), 0, 2); - - return; -} - /* (No doubt this function already exists elsewhere.) */ static void repr_quote_write (Writer &out, const gchar * val) diff --git a/src/xml/repr.h b/src/xml/repr.h index 162896c3f..bbab619f0 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -66,6 +66,7 @@ inline Inkscape::XML::Node *sp_repr_next(Inkscape::XML::Node *repr) { return ( repr ? repr->next() : NULL ); } + /* IO */ Inkscape::XML::Document *sp_repr_read_file(gchar const *filename, gchar const *default_ns); @@ -78,7 +79,6 @@ Glib::ustring sp_repr_save_buf(Inkscape::XML::Document *doc); void sp_repr_save_stream(Inkscape::XML::Document *doc, FILE *to_file, gchar const *default_ns=NULL, bool compress = false); bool sp_repr_save_file(Inkscape::XML::Document *doc, gchar const *filename, gchar const *default_ns=NULL); -void sp_repr_print(Inkscape::XML::Node *repr); /* CSS stuff */ -- 2.30.2