From d2458a471094dce70cfa0dc587d762d79c337705 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 14 Jun 2014 22:38:18 -0700 Subject: [PATCH] swrast: Remove unused solve_plane_recip(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Unused since commit 9e8a961d. Reviewed-by: Tapani Pälli Reviewed-by: Ian Romanick --- src/mesa/swrast/s_aatriangle.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/mesa/swrast/s_aatriangle.c b/src/mesa/swrast/s_aatriangle.c index d670d315442..21928274894 100644 --- a/src/mesa/swrast/s_aatriangle.c +++ b/src/mesa/swrast/s_aatriangle.c @@ -111,20 +111,6 @@ solve_plane(GLfloat x, GLfloat y, const GLfloat plane[4]) ((PLANE[3] + PLANE[0] * (X) + PLANE[1] * (Y)) / -PLANE[2]) -/* - * Return 1 / solve_plane(). - */ -static inline GLfloat -solve_plane_recip(GLfloat x, GLfloat y, const GLfloat plane[4]) -{ - const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y; - if (denom == 0.0F) - return 0.0F; - else - return -plane[2] / denom; -} - - /* * Solve plane and return clamped GLchan value. */ -- 2.30.2