From 03c942c587504ffbc78eed44bb32fded3286ab91 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Tue, 27 Feb 2007 15:20:01 +0000 Subject: get rid of sp_repr_document_root and (commented) sp_repr_duplicate (bzr r2461) --- src/xml/repr-action-test.cpp | 2 +- src/xml/repr.h | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'src/xml') diff --git a/src/xml/repr-action-test.cpp b/src/xml/repr-action-test.cpp index 7ab857f46..0e3d8d4a4 100644 --- a/src/xml/repr-action-test.cpp +++ b/src/xml/repr-action-test.cpp @@ -12,7 +12,7 @@ int main(int argc, char *argv[]) { Inkscape::GC::init(); document = sp_repr_document_new("test"); - root = sp_repr_document_root(document); + root = document->root(); utest_start("XML Transactions"); diff --git a/src/xml/repr.h b/src/xml/repr.h index 1f7f68bf1..89221656a 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -130,19 +130,8 @@ char const *sp_xml_ns_uri_prefix(gchar const *uri, gchar const *suggested); char const *sp_xml_ns_prefix_uri(gchar const *prefix); - -/*inline Inkscape::XML::Node *sp_repr_duplicate(Inkscape::XML::Node const *repr) { - return repr->duplicate(); -}*/ - Inkscape::XML::Document *sp_repr_document_new(gchar const *rootname); -/// Returns root node of document. -inline Inkscape::XML::Node *sp_repr_document_root(Inkscape::XML::Document const *doc) { - if (!doc) return NULL; - return const_cast(doc->root()); -} - /* Contents */ /// Sets the node's \a key attribute to \a value. inline unsigned sp_repr_set_attr(Inkscape::XML::Node *repr, gchar const *key, gchar const *value, -- cgit v1.2.3