summaryrefslogtreecommitdiff
path: root/svx/source/engine3d/viewpt3d2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-30 14:18:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-03 10:19:36 +0200
commita5c200bddd51cba75d30f37a33541778ba8223b4 (patch)
tree521c015effb8f5e3089f71122b31bbb959ad4a8b /svx/source/engine3d/viewpt3d2.cxx
parent09a4d2faa429cc52d603abc55d99723f39dc9023 (diff)
loplugin:unusedfields in svx
Change-Id: I027b70ee92ab07eb68452457c3ee45de3ad22c8b Reviewed-on: https://gerrit.libreoffice.org/39412 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d/viewpt3d2.cxx')
-rw-r--r--svx/source/engine3d/viewpt3d2.cxx22
1 files changed, 1 insertions, 21 deletions
diff --git a/svx/source/engine3d/viewpt3d2.cxx b/svx/source/engine3d/viewpt3d2.cxx
index 9a0769a953bd..bbf63fd4d6e7 100644
--- a/svx/source/engine3d/viewpt3d2.cxx
+++ b/svx/source/engine3d/viewpt3d2.cxx
@@ -26,13 +26,10 @@ Viewport3D::Viewport3D() :
aVPN(0, 0, 1),
aVUV(0, 1, 1),
aPRP(0, 0, 2),
- fVPD(-3),
eProjection(ProjectionType::Perspective),
aDeviceRect(Point(0,0), Size(-1,-1)),
aViewPoint (0, 0, 5000),
- bTfValid(false),
- fWRatio (1.0),
- fHRatio (1.0)
+ bTfValid(false)
{
aViewWin.X = -1; aViewWin.Y = -1;
aViewWin.W = 2; aViewWin.H = 2;
@@ -48,9 +45,6 @@ void Viewport3D::SetViewWindow(double fX, double fY, double fW, double fH)
else aViewWin.W = 1.0;
if ( fH > 0 ) aViewWin.H = fH;
else aViewWin.H = 1.0;
-
- fWRatio = aDeviceRect.GetWidth() / aViewWin.W;
- fHRatio = aDeviceRect.GetHeight() / aViewWin.H;
}
// Returns observer position (PRP) in world coordinates
@@ -120,12 +114,6 @@ const basegfx::B3DPoint& Viewport3D::GetViewPoint()
void Viewport3D::SetDeviceWindow(const tools::Rectangle& rRect)
{
- long nNewW = rRect.GetWidth();
- long nNewH = rRect.GetHeight();
-
- fWRatio = nNewW / aViewWin.W;
- fHRatio = nNewH / aViewWin.H;
-
aDeviceRect = rRect;
}
@@ -164,12 +152,4 @@ void Viewport3D::SetPRP(const basegfx::B3DPoint& rNewPRP)
bTfValid = false;
}
-// Set View Plane Distance
-
-void Viewport3D::SetVPD(double fNewVPD)
-{
- fVPD = fNewVPD;
- bTfValid = false;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */