summaryrefslogtreecommitdiffstats
path: root/src/desktop-affine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop-affine.cpp')
-rw-r--r--src/desktop-affine.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/desktop-affine.cpp b/src/desktop-affine.cpp
deleted file mode 100644
index 707b1df8a..000000000
--- a/src/desktop-affine.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#define __SP_DESKTOP_AFFINE_C__
-
-/*
- * Editable view and widget implementation
- *
- * Author:
- * Lauris Kaplinski <lauris@kaplinski.com>
- *
- * Copyright (C) 1999-2002 Lauris Kaplinski
- * Copyright (C) 2000-2001 Ximian, Inc.
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#include "desktop.h"
-//#include "document.h"
-//#include "sp-root.h"
-
-Geom::Matrix const sp_desktop_dt2doc_affine (SPDesktop const *dt)
-{
- return dt->doc2dt().inverse();
-}
-
-Geom::Point sp_desktop_dt2doc_xy_point(SPDesktop const *dt, Geom::Point const p)
-{
- return p * sp_desktop_dt2doc_affine(dt);
-}
-
-#if 0
-Geom::Matrix const sp_desktop_root2dt_affine (SPDesktop const *dt)
-{
- SPRoot const *root = SP_ROOT(SP_DOCUMENT_ROOT(dt->doc()));
- return root->c2p * dt->doc2dt();
-}
-
-Geom::Matrix const sp_desktop_dt2root_affine (SPDesktop const *dt)
-{
- return sp_desktop_root2dt_affine(dt).inverse();
-}
-
-Geom::Point sp_desktop_root2dt_xy_point(SPDesktop const *dt, Geom::Point const p)
-{
- return p * sp_desktop_root2dt_affine(dt);
-}
-
-Geom::Point sp_desktop_dt2root_xy_point(SPDesktop const *dt, Geom::Point const p)
-{
- return p * sp_desktop_dt2root_affine(dt);
-}
-#endif
-