summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-26 08:56:05 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-26 08:56:05 +0000
commite113ae852b97a1e5b849370f467edd514d38d65a (patch)
tree4c5dc79adb6f4a9a65bcfff8fca4371ecb7b753a /src
parentinterpret snapping distance in screen pixels independent of zoom (diff)
downloadinkscape-e113ae852b97a1e5b849370f467edd514d38d65a.tar.gz
inkscape-e113ae852b97a1e5b849370f467edd514d38d65a.zip
purge unused and considered-harmful has_abs_tolerance
(bzr r2763)
Diffstat (limited to 'src')
-rw-r--r--src/attributes-test.h1
-rw-r--r--src/attributes.cpp1
-rw-r--r--src/attributes.h1
-rw-r--r--src/sp-namedview.cpp8
-rw-r--r--src/sp-namedview.h2
5 files changed, 0 insertions, 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;