summaryrefslogtreecommitdiffstats
path: root/src/libnr/nr-rect-l.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-08-27 16:05:32 +0000
committerKrzysztof Kosinski <tweenk.pl@gmail.com>2011-08-27 16:05:32 +0000
commitd6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a (patch)
tree69ea9c65f725d83ae1bc267ea5a0358a1bc1d793 /src/libnr/nr-rect-l.cpp
parentRemove all NRRect use. (diff)
downloadinkscape-d6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a.tar.gz
inkscape-d6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a.zip
Completely remove NRRect, NRRectL, in-svg-plane.h
(bzr r10582.1.6)
Diffstat (limited to 'src/libnr/nr-rect-l.cpp')
-rw-r--r--src/libnr/nr-rect-l.cpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/libnr/nr-rect-l.cpp b/src/libnr/nr-rect-l.cpp
deleted file mode 100644
index 1cb268266..000000000
--- a/src/libnr/nr-rect-l.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-#include "libnr/nr-rect-l.h"
-
-NRRectL::NRRectL()
-{
- x0 = G_MAXINT32;
- y0 = G_MAXINT32;
- x1 = G_MININT32;
- y1 = G_MININT32;
-}
-
-NRRectL::NRRectL(gint32 xmin, gint32 ymin, gint32 xmax, gint32 ymax)
-{
- x0 = xmin;
- y0 = ymin;
- x1 = xmax;
- y1 = ymax;
-}
-
-NRRectL::NRRectL(Geom::OptIntRect const &r)
-{
- if (r) {
- x0 = r->left();
- y0 = r->top();
- x1 = r->right();
- y1 = r->bottom();
- } else {
- x0 = G_MAXINT32;
- y0 = G_MAXINT32;
- x1 = G_MININT32;
- y1 = G_MININT32;
- }
-}
-
-NRRectL::NRRectL(Geom::IntRect const &r)
-{
- x0 = r.left();
- y0 = r.top();
- x1 = r.right();
- y1 = r.bottom();
-}
-
-Geom::OptIntRect NRRectL::upgrade_2geom() const
-{
- Geom::OptIntRect ret;
- if (x0 > x1 || y0 > y1) return ret;
- ret = Geom::IntRect(x0, y0, x1, y1);
- return ret;
-}
-
-/*
- Local Variables:
- mode:c++
- c-file-style:"stroustrup"
- c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
- indent-tabs-mode:nil
- fill-column:99
- End:
-*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :