diff options
| author | MenTaLguY <mental@rydia.net> | 2007-01-25 04:09:08 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-01-25 04:09:08 +0000 |
| commit | ffdc4605452616809c087ec72dd7571bd51f6ef7 (patch) | |
| tree | 64596d020104a32e736fca70344b1d565847f405 /src | |
| parent | eliminate last uses of sp_repr_new* (diff) | |
| download | inkscape-ffdc4605452616809c087ec72dd7571bd51f6ef7.tar.gz inkscape-ffdc4605452616809c087ec72dd7571bd51f6ef7.zip | |
get rid of sp_repr_new*
(bzr r2284)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xml/repr.cpp | 26 | ||||
| -rw-r--r-- | src/xml/repr.h | 5 |
2 files changed, 0 insertions, 31 deletions
diff --git a/src/xml/repr.cpp b/src/xml/repr.cpp index c6943a252..be226a357 100644 --- a/src/xml/repr.cpp +++ b/src/xml/repr.cpp @@ -30,32 +30,6 @@ using Inkscape::Util::share_string; -/// Returns new node. -Inkscape::XML::Node * -sp_repr_new(gchar const *name) -{ - g_return_val_if_fail(name != NULL, NULL); - g_return_val_if_fail(*name != '\0', NULL); - - return new Inkscape::XML::ElementNode(g_quark_from_string(name)); -} - -/// Returns new textnode with content. See Inkscape::XML::TextNode. -Inkscape::XML::Node * -sp_repr_new_text(gchar const *content) -{ - g_return_val_if_fail(content != NULL, NULL); - return new Inkscape::XML::TextNode(share_string(content)); -} - -/// Returns new commentnode with comment. See Inkscape::XML::CommentNode. -Inkscape::XML::Node * -sp_repr_new_comment(gchar const *comment) -{ - g_return_val_if_fail(comment != NULL, NULL); - return new Inkscape::XML::CommentNode(share_string(comment)); -} - /// Returns new document having as first child a node named rootname. Inkscape::XML::Document * sp_repr_document_new(char const *rootname) diff --git a/src/xml/repr.h b/src/xml/repr.h index 416c979f9..1b2cad756 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -131,11 +131,6 @@ char const *sp_xml_ns_uri_prefix(gchar const *uri, gchar const *suggested); char const *sp_xml_ns_prefix_uri(gchar const *prefix); -/* replaced by create* methods on Inkscape::XML::Document */ -Inkscape::XML::Node *sp_repr_new(gchar const *name) __attribute__ ((deprecated)); -Inkscape::XML::Node *sp_repr_new_text(gchar const *content) __attribute__ ((deprecated)); -Inkscape::XML::Node *sp_repr_new_comment(gchar const *comment) __attribute__ ((deprecated)); - /*inline Inkscape::XML::Node *sp_repr_duplicate(Inkscape::XML::Node const *repr) { return repr->duplicate(); }*/ |
