diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-01-11 12:54:37 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-01-11 12:54:37 +0000 |
| commit | ffe32ceda6645fc945114352c43f1435931e9987 (patch) | |
| tree | 5f1c7a8f5e3fe32d3138694c547ef32a45735be4 /src/connection-points.cpp | |
| parent | Warning and dead code cleanup. (diff) | |
| parent | Step 1. Remove junk and keep functionality. (diff) | |
| download | inkscape-ffe32ceda6645fc945114352c43f1435931e9987.tar.gz inkscape-ffe32ceda6645fc945114352c43f1435931e9987.zip | |
Merge in connector cleanup
(bzr r12015)
Diffstat (limited to 'src/connection-points.cpp')
| -rw-r--r-- | src/connection-points.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/connection-points.cpp b/src/connection-points.cpp deleted file mode 100644 index 9ed98d211..000000000 --- a/src/connection-points.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "connection-points.h" - - -bool ConnectionPoint::operator!=(ConnectionPoint& cp) -{ - return (id!=cp.id || type!=cp.type || dir!=cp.dir || pos!=cp.pos); -} - -bool ConnectionPoint::operator==(ConnectionPoint& cp) -{ - return (id==cp.id && type==cp.type && dir==cp.dir && pos==cp.pos); -} - - -namespace Inkscape{ - -SVGIStringStream& -operator>>(SVGIStringStream& istr, ConnectionPoint& cp) -{ - istr>>cp.id>>cp.dir>>cp.pos[Geom::X]>>cp.pos[Geom::Y]; - - return istr; -} - -SVGOStringStream& -operator<<(SVGOStringStream& ostr, const ConnectionPoint& cp) -{ - ostr<<cp.id<<' '<<cp.dir<<' '; - ::operator<<( ostr, cp.pos[Geom::X] ); - ostr<<' '; - ::operator<<( ostr, cp.pos[Geom::Y] ); - - return ostr; -} - - -} |
