Code

purge unused and considered-harmful has_abs_tolerance
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 26 Mar 2007 08:56:05 +0000 (08:56 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 26 Mar 2007 08:56:05 +0000 (08:56 +0000)
src/attributes-test.h
src/attributes.cpp
src/attributes.h
src/sp-namedview.cpp
src/sp-namedview.h

index d1d872bf73e021a0ad1ac97789537c01ec95eb59..d82b14df81e88073cb4160759b7aa61abdbcffea 100644 (file)
@@ -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},
index 858f71804f890f65f4f1f5435c73beb8b201599d..a453b726ac26680a046d784ddec7899cc300d004 100644 (file)
@@ -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"},
index 253724ac42dc4625a355bf9dc6aa8f23ed7cb292..224bd379e0e80a0ca857f80c95e4c2ec8d5779a4 100644 (file)
@@ -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,
index a220d8401c2cb259a9039208592c8a0f8ac1132f..0928de19e2b1af9fa5173f53000d4f40052ca393 100644 (file)
@@ -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:
        {
index be7f1a541e91d9ca49442bd5130a3de135f8415b..64b78d29c5527d558078ab5153742e331e4e18bf 100644 (file)
@@ -71,8 +71,6 @@ struct SPNamedView : public SPObjectGroup {
     SPUnit const *objecttoleranceunit;
     gdouble objecttolerance;
 
-    bool has_abs_tolerance;
-    
     GQuark default_layer_id;
     
     double connector_spacing;