Mesa (master): radeon: Remove set-but-unused variables in radeon_lock.c

Eric Anholt anholt at kemper.freedesktop.org
Tue Aug 2 13:59:49 PDT 2011


Module: Mesa
Branch: master
Commit: 8de1d42f244f6315c471b01ef52a61f61d227c6d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8de1d42f244f6315c471b01ef52a61f61d227c6d

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug  2 13:47:18 2011 -0700

radeon: Remove set-but-unused variables in radeon_lock.c

These have been unused since this function's introduction in the FBO
support development around 2009.

---

 src/mesa/drivers/dri/radeon/radeon_lock.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_lock.c b/src/mesa/drivers/dri/radeon/radeon_lock.c
index 7b6bd36..ae8a212 100644
--- a/src/mesa/drivers/dri/radeon/radeon_lock.c
+++ b/src/mesa/drivers/dri/radeon/radeon_lock.c
@@ -114,16 +114,6 @@ void radeon_lock_hardware(radeonContextPtr radeon
 		)
 {
 	char ret = 0;
-	struct radeon_framebuffer *rfb = NULL;
-	struct radeon_renderbuffer *rrb = NULL;
-
-	if (radeon_get_drawable(radeon)) {
-		rfb = radeon_get_drawable(radeon)->driverPrivate;
-
-		if (rfb)
-			rrb = radeon_get_renderbuffer(&rfb->base,
-						      rfb->base._ColorDrawBufferIndexes[0]);
-	}
 
 	if (!radeon->radeonScreen->driScreen->dri2.enabled) {
 		if (ATOMIC_INC_AND_FETCH(radeon->dri.hwLockCount) > 1)



More information about the mesa-commit mailing list