diff options
| author | MenTaLguY <mental@rydia.net> | 2007-02-27 15:20:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-02-27 15:20:01 +0000 |
| commit | 03c942c587504ffbc78eed44bb32fded3286ab91 (patch) | |
| tree | 0b209cd63a3977e8dd9d3e1293dce4e295fd89a9 /src/xml | |
| parent | increase padding (diff) | |
| download | inkscape-03c942c587504ffbc78eed44bb32fded3286ab91.tar.gz inkscape-03c942c587504ffbc78eed44bb32fded3286ab91.zip | |
get rid of sp_repr_document_root and (commented) sp_repr_duplicate
(bzr r2461)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr-action-test.cpp | 2 | ||||
| -rw-r--r-- | src/xml/repr.h | 11 |
2 files changed, 1 insertions, 12 deletions
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<Inkscape::XML::Node *>(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, |
