diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-01-11 21:06:52 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-01-11 21:06:52 +0000 |
| commit | 793f5a82fbda55a2f37d2f432a9ce37f1c801c1c (patch) | |
| tree | 16603190d14046976505ce6acf5c449c687e0660 /src/xml | |
| parent | Powerstroke: fix crashers (diff) | |
| download | inkscape-793f5a82fbda55a2f37d2f432a9ce37f1c801c1c.tar.gz inkscape-793f5a82fbda55a2f37d2f432a9ce37f1c801c1c.zip | |
Dropped deprecated function sp_repr_get_int_attribute
(bzr r10871)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr-util.cpp | 28 | ||||
| -rw-r--r-- | src/xml/repr.h | 7 |
2 files changed, 1 insertions, 34 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp index 1e2449404..6899e77ee 100644 --- a/src/xml/repr-util.cpp +++ b/src/xml/repr-util.cpp @@ -312,34 +312,6 @@ gchar const *sp_xml_ns_prefix_uri(gchar const *prefix) return uri; } -/*double sp_repr_get_double_attribute(Inkscape::XML::Node *repr, char const *key, double def) -{ - char *result; - - g_return_val_if_fail(repr != NULL, def); - g_return_val_if_fail(key != NULL, def); - - result = (char *) repr->attribute(key); - - if (result == NULL) return def; - - return g_ascii_strtod(result, NULL); -}*/ - -long long int sp_repr_get_int_attribute(Inkscape::XML::Node *repr, char const *key, long long int def) -{ - char *result; - - g_return_val_if_fail(repr != NULL, def); - g_return_val_if_fail(key != NULL, def); - - result = (char *) repr->attribute(key); - - if (result == NULL) return def; - - return atoll(result); -} - /** * Works for different-parent objects, so long as they have a common ancestor. Return value: * 0 positions are equivalent diff --git a/src/xml/repr.h b/src/xml/repr.h index 3963e8efb..3eee45385 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -109,16 +109,11 @@ unsigned sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, dou unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point const & val); unsigned sp_repr_get_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point *val); -// \deprecated Use sp_repr_get_double to check for success -//double sp_repr_get_double_attribute(Inkscape::XML::Node *repr, gchar const *key, double def); -/// \deprecated Use sp_repr_get_int to check for success -long long int sp_repr_get_int_attribute(Inkscape::XML::Node *repr, gchar const *key, long long int def); - int sp_repr_compare_position(Inkscape::XML::Node const *first, Inkscape::XML::Node const *second); // Searching /** - * @brief Find an element node with the given name + * @brief Find an element node with the given name. * * This function searches the descendants of the specified node depth-first for * the first XML node with the specified name. |
