From 793f5a82fbda55a2f37d2f432a9ce37f1c801c1c Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Wed, 11 Jan 2012 22:06:52 +0100 Subject: Dropped deprecated function sp_repr_get_int_attribute (bzr r10871) --- src/xml/repr-util.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/xml/repr-util.cpp') 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 -- cgit v1.2.3