From d20f4abc818c368a974b50b641eff31b0f49ac73 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 26 Mar 2007 08:56:05 +0000 Subject: [PATCH] purge unused and considered-harmful has_abs_tolerance --- src/attributes-test.h | 1 - src/attributes.cpp | 1 - src/attributes.h | 1 - src/sp-namedview.cpp | 8 -------- src/sp-namedview.h | 2 -- 5 files changed, 13 deletions(-) diff --git a/src/attributes-test.h b/src/attributes-test.h index d1d872bf7..d82b14df8 100644 --- a/src/attributes-test.h +++ b/src/attributes-test.h @@ -407,7 +407,6 @@ struct {char const *attr; bool supported;} const all_attrs[] = { {"gridtolerance", true}, {"guidetolerance", true}, {"objecttolerance", true}, - {"has_abs_tolerance", true}, {"gridoriginx", true}, {"gridoriginy", true}, {"gridspacingx", true}, diff --git a/src/attributes.cpp b/src/attributes.cpp index 858f71804..a453b726a 100644 --- a/src/attributes.cpp +++ b/src/attributes.cpp @@ -64,7 +64,6 @@ static SPStyleProp const props[] = { {SP_ATTR_GRIDTOLERANCE, "gridtolerance"}, {SP_ATTR_GUIDETOLERANCE, "guidetolerance"}, {SP_ATTR_OBJECTTOLERANCE, "objecttolerance"}, - {SP_ATTR_ABS_TOLERANCE, "has_abs_tolerance"}, {SP_ATTR_GRIDORIGINX, "gridoriginx"}, {SP_ATTR_GRIDORIGINY, "gridoriginy"}, {SP_ATTR_GRIDSPACINGX, "gridspacingx"}, diff --git a/src/attributes.h b/src/attributes.h index 253724ac4..224bd379e 100644 --- a/src/attributes.h +++ b/src/attributes.h @@ -65,7 +65,6 @@ enum SPAttributeEnum { SP_ATTR_GRIDTOLERANCE, SP_ATTR_GUIDETOLERANCE, SP_ATTR_OBJECTTOLERANCE, - SP_ATTR_ABS_TOLERANCE, SP_ATTR_GRIDORIGINX, SP_ATTR_GRIDORIGINY, SP_ATTR_GRIDSPACINGX, diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp index a220d8401..0928de19e 100644 --- a/src/sp-namedview.cpp +++ b/src/sp-namedview.cpp @@ -139,7 +139,6 @@ static void sp_namedview_build(SPObject *object, SPDocument *document, Inkscape: sp_object_read_attr(object, "gridtolerance"); sp_object_read_attr(object, "guidetolerance"); sp_object_read_attr(object, "objecttolerance"); - sp_object_read_attr(object, "inkscape:has_abs_tolerance"); sp_object_read_attr(object, "gridoriginx"); sp_object_read_attr(object, "gridoriginy"); sp_object_read_attr(object, "gridspacingx"); @@ -268,13 +267,6 @@ static void sp_namedview_set(SPObject *object, unsigned int key, const gchar *va } object->requestModified(SP_OBJECT_MODIFIED_FLAG); break; - case SP_ATTR_ABS_TOLERANCE: - if (!value) - nv->has_abs_tolerance = true; - else - nv->has_abs_tolerance = (sp_str_to_bool (value) == TRUE); - object->requestModified(SP_OBJECT_MODIFIED_FLAG); - break; case SP_ATTR_GRIDORIGINX: case SP_ATTR_GRIDORIGINY: { diff --git a/src/sp-namedview.h b/src/sp-namedview.h index be7f1a541..64b78d29c 100644 --- a/src/sp-namedview.h +++ b/src/sp-namedview.h @@ -71,8 +71,6 @@ struct SPNamedView : public SPObjectGroup { SPUnit const *objecttoleranceunit; gdouble objecttolerance; - bool has_abs_tolerance; - GQuark default_layer_id; double connector_spacing; -- 2.30.2