Wed, 08 Feb 2017 16:38:59 +0200
GLRenderer::clampAngle is no longer used as of the previous commit so we can do away with it.
src/glRenderer.cpp | file | annotate | diff | comparison | revisions | |
src/glRenderer.h | file | annotate | diff | comparison | revisions |
--- a/src/glRenderer.cpp Wed Feb 08 16:25:06 2017 +0200 +++ b/src/glRenderer.cpp Wed Feb 08 16:38:59 2017 +0200 @@ -728,17 +728,6 @@ // ============================================================================= // -void GLRenderer::clampAngle(double& angle) const -{ - while (angle < 0) - angle += 360.0; - - while (angle > 360.0) - angle -= 360.0; -} - -// ============================================================================= -// void GLRenderer::mouseReleaseEvent(QMouseEvent* ev) { bool wasLeft = (m_lastButtons & Qt::LeftButton) and not (ev->buttons() & Qt::LeftButton);
--- a/src/glRenderer.h Wed Feb 08 16:25:06 2017 +0200 +++ b/src/glRenderer.h Wed Feb 08 16:38:59 2017 +0200 @@ -239,7 +239,6 @@ GLuint m_axesColorVbo; void calcCameraIcons(); - void clampAngle (double& angle) const; LDGLData& currentDocumentData() const; void drawVbos (SurfaceVboType surface, ComplementVboType colors, GLenum type); LDOverlay* findOverlayObject (Camera cam);