[Libreoffice-commits] core.git: Branch 'feature/chart-opengl2' - chart2/source

Markus Mohrhard markus.mohrhard at collabora.co.uk
Sun Jan 12 15:55:35 PST 2014


 chart2/source/view/main/OpenGLRender.cxx |   28 ----------------------------
 chart2/source/view/main/OpenGLRender.hxx |    9 ---------
 2 files changed, 37 deletions(-)

New commits:
commit e664b984380fff16649973eeea8d62c469d680e1
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Mon Jan 13 00:53:11 2014 +0100

    remove unused variables
    
    Change-Id: Ic6a1ce2ac9e45d28cc0c9186859988c5085d44cd

diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index b736b93..ceaa07e 100644
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -581,11 +581,6 @@ int OpenGLRender::SetLine2DShapePoint(float x, float y, int listLength)
     m_Line2DPointList.push_back(actualY);
     m_Line2DPointList.push_back(0);
 
-    m_fPicLeft = std::min(m_fPicLeft, actualX);
-    m_fPicRight = std::max(m_fPicRight, actualX);
-    m_fPicBottom = std::min(m_fPicBottom, actualY);
-    m_fPicTop = std::max(m_fPicTop, actualY);
-
     if (m_Line2DPointList.size() == size_t(listLength * 3))
     {
         m_Line2DShapePointList.push_back(m_Line2DPointList);
@@ -1300,11 +1295,6 @@ int OpenGLRender::Bubble2DShapePoint(float x, float y, float directionX, float d
     m_Bubble2DPointList.xScale = directionX / OPENGL_SCALE_VALUE;
     m_Bubble2DPointList.yScale = directionY / OPENGL_SCALE_VALUE;
 
-    m_fPicLeft = std::min(m_fPicLeft, actualX);
-    m_fPicRight = std::max(m_fPicRight, actualX);
-    m_fPicBottom = std::min(m_fPicBottom, actualY);
-    m_fPicTop = std::max(m_fPicTop, actualY);
-
     m_Bubble2DShapePointList.push_back(m_Bubble2DPointList);
     return 0;
 }
@@ -1380,11 +1370,6 @@ int OpenGLRender::RectangleShapePoint(float x, float y, float directionX, float
     m_RectangleList.xScale = directionX / OPENGL_SCALE_VALUE;
     m_RectangleList.yScale = directionY / OPENGL_SCALE_VALUE;
 
-    m_fPicLeft = std::min(m_fPicLeft, actualX);
-    m_fPicRight = std::max(m_fPicRight, actualX);
-    m_fPicBottom = std::min(m_fPicBottom, actualY);
-    m_fPicTop = std::max(m_fPicTop, actualY);
-
     m_RectangleShapePointList.push_back(m_RectangleList);
     return 0;
 }
@@ -1512,15 +1497,7 @@ int OpenGLRender::CreateTextTexture(::rtl::OUString textValue, sal_uInt32 color,
     m_TextInfo.vertex[6] = (float)(-aSize.Width / 2) / OPENGL_SCALE_VALUE;
     m_TextInfo.vertex[7] = (float)(aSize.Height / 2) / OPENGL_SCALE_VALUE;
 
-    m_fPicLeft = (m_TextInfo.x + m_TextInfo.vertex[0])< m_fPicLeft ? (m_TextInfo.x + m_TextInfo.vertex[0]) : m_fPicLeft;
-
-    m_fPicRight = (m_TextInfo.x + m_TextInfo.vertex[2]) > m_fPicRight ? (m_TextInfo.x + m_TextInfo.vertex[2]) : m_fPicRight;
-
-    m_fPicBottom = (m_TextInfo.y + m_TextInfo.vertex[1]) < m_fPicBottom ? (m_TextInfo.y + m_TextInfo.vertex[1]) : m_fPicBottom;
-
-    m_fPicTop = (m_TextInfo.y + m_TextInfo.vertex[5]) > m_fPicTop ? (m_TextInfo.y + m_TextInfo.vertex[5]) : m_fPicTop;
     //if has ratotion, we must re caculate the central pos
-
     if (rotation)
     {
         //use left top
@@ -1658,11 +1635,6 @@ int OpenGLRender::SetArea2DShapePoint(float x, float y, int listLength)
     m_Area2DPointList.push_back(actualY);
     m_Area2DPointList.push_back(m_fZStep);
 
-    m_fPicLeft = std::min(m_fPicLeft, actualX);
-    m_fPicRight = std::max(m_fPicRight, actualX);
-    m_fPicBottom = std::min(m_fPicBottom, actualY);
-    m_fPicTop = std::max(m_fPicTop, actualY);
-
     if (m_Area2DPointList.size() == size_t(listLength * 3))
     {
         m_Area2DShapePointList.push_back(m_Area2DPointList);
diff --git a/chart2/source/view/main/OpenGLRender.hxx b/chart2/source/view/main/OpenGLRender.hxx
index fd8013a..7accdae 100644
--- a/chart2/source/view/main/OpenGLRender.hxx
+++ b/chart2/source/view/main/OpenGLRender.hxx
@@ -277,14 +277,6 @@ private:
     GLuint m_renderBufferColorMS;
     GLuint m_renderBufferDepthMS;
 
-    float m_fPicRight;
-
-    float m_fPicLeft;
-
-    float m_fPicBottom;
-
-    float m_fPicTop;
-
     Bubble2DCircle m_Bubble2DCircle;
 
     Bubble2DPointList m_Bubble2DPointList;
@@ -294,7 +286,6 @@ private:
     GLint m_2DVertexID;
     GLint m_2DColorID;
 
-
     float m_fZStep;
 
     float m_fAlpha;


More information about the Libreoffice-commits mailing list