summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
Diffstat (limited to 'src/svg')
-rw-r--r--src/svg/svg-length-test.h5
-rw-r--r--src/svg/svg-length.cpp20
-rw-r--r--src/svg/svg-length.h2
3 files changed, 1 insertions, 26 deletions
diff --git a/src/svg/svg-length-test.h b/src/svg/svg-length-test.h
index 0dac4854a..e73211ade 100644
--- a/src/svg/svg-length-test.h
+++ b/src/svg/svg-length-test.h
@@ -102,10 +102,7 @@ public:
for ( int i = (static_cast<int>(SVGLength::NONE) + 1); i <= static_cast<int>(SVGLength::LAST_UNIT); i++ ) {
SVGLength::Unit target = static_cast<SVGLength::Unit>(i);
// PX is a special case where we don't have a unit string
- // FOOT and MITRE are not CSS/SVG Units
- if ( (target != SVGLength::PX) &&
- (target != SVGLength::FOOT) &&
- (target != SVGLength::MITRE) ) {
+ if ( (target != SVGLength::PX) ) {
gchar const* val = sp_svg_length_get_css_units(target);
TSM_ASSERT_DIFFERS(i, val, "");
}
diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp
index cd995582d..d22da69cd 100644
--- a/src/svg/svg-length.cpp
+++ b/src/svg/svg-length.cpp
@@ -411,14 +411,6 @@ So after the number, the string does not necessarily have a \0 or a unit, it mig
*computed = Inkscape::Util::Quantity::convert(v, "in", "px");
}
break;
- case UVAL('f','t'):
- if (unit) {
- *unit = SVGLength::FOOT;
- }
- if (computed) {
- *computed = Inkscape::Util::Quantity::convert(v, "ft", "px");
- }
- break;
case UVAL('e','m'):
if (unit) {
*unit = SVGLength::EM;
@@ -495,12 +487,6 @@ void SVGLength::set(SVGLength::Unit u, float v)
case INCH:
hack = "pt";
break;
- case FOOT:
- hack = "pt";
- break;
- case MITRE:
- hack = "m";
- break;
default:
break;
}
@@ -572,8 +558,6 @@ gchar const *sp_svg_length_get_css_units(SVGLength::Unit unit)
case SVGLength::MM: return "mm";
case SVGLength::CM: return "cm";
case SVGLength::INCH: return "in";
- case SVGLength::FOOT: return ""; // Not in SVG/CSS specification.
- case SVGLength::MITRE: return ""; // Not in SVG/CSS specification.
case SVGLength::EM: return "em";
case SVGLength::EX: return "ex";
case SVGLength::PERCENT: return "%";
@@ -590,10 +574,6 @@ std::string sp_svg_length_write_with_units(SVGLength const &length)
Inkscape::SVGOStringStream os;
if (length.unit == SVGLength::PERCENT) {
os << 100*length.value << sp_svg_length_get_css_units(length.unit);
- } else if (length.unit == SVGLength::FOOT) {
- os << 12*length.value << sp_svg_length_get_css_units(SVGLength::INCH);
- } else if (length.unit == SVGLength::MITRE) {
- os << 100*length.value << sp_svg_length_get_css_units(SVGLength::CM);
} else {
os << length.value << sp_svg_length_get_css_units(length.unit);
}
diff --git a/src/svg/svg-length.h b/src/svg/svg-length.h
index 2aaf248b1..bd3435ca6 100644
--- a/src/svg/svg-length.h
+++ b/src/svg/svg-length.h
@@ -27,8 +27,6 @@ public:
MM,
CM,
INCH,
- FOOT,
- MITRE,
EM,
EX,
PERCENT,