diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-07-22 03:50:53 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-07-22 03:50:53 +0000 |
| commit | 0b2190b4a186f4b1a2265c85b4baa801d49e5534 (patch) | |
| tree | c364ddd10da8d5ecf1556daccffe74df8abc14c9 /src/util/units.cpp | |
| parent | Ported "widgets/ruler.*" away from SPMetric. (diff) | |
| download | inkscape-0b2190b4a186f4b1a2265c85b4baa801d49e5534.tar.gz inkscape-0b2190b4a186f4b1a2265c85b4baa801d49e5534.zip | |
Removed SPMetric.
(bzr r12380.1.49)
Diffstat (limited to 'src/util/units.cpp')
| -rw-r--r-- | src/util/units.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/util/units.cpp b/src/util/units.cpp index 01424520b..582c52090 100644 --- a/src/util/units.cpp +++ b/src/util/units.cpp @@ -187,28 +187,6 @@ int Unit::svgUnit() const return 0; } -/** Temporary - get metric. */ -int Unit::metric() const -{ - if (!abbr.compare("mm")) - return 1; - if (!abbr.compare("cm")) - return 2; - if (!abbr.compare("in")) - return 3; - if (!abbr.compare("ft")) - return 4; - if (!abbr.compare("pt")) - return 5; - if (!abbr.compare("pc")) - return 6; - if (!abbr.compare("px")) - return 7; - if (!abbr.compare("m")) - return 8; - return 0; -} - UnitTable::UnitTable() { // if we swich to the xml file, don't forget to force locale to 'C' |
