GLRenderer::clampAngle is no longer used as of the previous commit so we can do away with it.

Wed, 08 Feb 2017 16:38:59 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 08 Feb 2017 16:38:59 +0200
changeset 1093
3fb96ed48e49
parent 1092
7a50a7f6b492
child 1094
8a419cead363

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);

mercurial