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

Author: Marek Olšák <[email protected]>
Date:   Sun May  1 14:01:59 2011 +0200

rbug: remove set-but-unused variables

---

 src/gallium/auxiliary/rbug/rbug_context.c |    7 -------
 src/gallium/auxiliary/rbug/rbug_core.c    |   14 --------------
 src/gallium/auxiliary/rbug/rbug_texture.c |    7 -------
 3 files changed, 0 insertions(+), 28 deletions(-)

diff --git a/src/gallium/auxiliary/rbug/rbug_context.c 
b/src/gallium/auxiliary/rbug/rbug_context.c
index 3682405..1188dd9 100644
--- a/src/gallium/auxiliary/rbug/rbug_context.c
+++ b/src/gallium/auxiliary/rbug/rbug_context.c
@@ -470,9 +470,6 @@ int rbug_send_context_draw_blocked(struct rbug_connection 
*__con,
 
 struct rbug_proto_context_list * rbug_demarshal_context_list(struct 
rbug_proto_header *header)
 {
-       uint32_t len = 0;
-       uint32_t pos = 0;
-       uint8_t *data =  NULL;
        struct rbug_proto_context_list *ret;
 
        if (!header)
@@ -480,9 +477,6 @@ struct rbug_proto_context_list * 
rbug_demarshal_context_list(struct rbug_proto_h
        if (header->opcode != (int32_t)RBUG_OP_CONTEXT_LIST)
                return NULL;
 
-       pos = 0;
-       len = header->length * 4;
-       data = (uint8_t*)&header[1];
        ret = MALLOC(sizeof(*ret));
        if (!ret)
                return NULL;
@@ -490,7 +484,6 @@ struct rbug_proto_context_list * 
rbug_demarshal_context_list(struct rbug_proto_h
        ret->header.__message = header;
        ret->header.opcode = header->opcode;
 
-
        return ret;
 }
 
diff --git a/src/gallium/auxiliary/rbug/rbug_core.c 
b/src/gallium/auxiliary/rbug/rbug_core.c
index 1d47d13..514a109 100644
--- a/src/gallium/auxiliary/rbug/rbug_core.c
+++ b/src/gallium/auxiliary/rbug/rbug_core.c
@@ -226,9 +226,6 @@ int rbug_send_error_reply(struct rbug_connection *__con,
 
 struct rbug_proto_noop * rbug_demarshal_noop(struct rbug_proto_header *header)
 {
-       uint32_t len = 0;
-       uint32_t pos = 0;
-       uint8_t *data =  NULL;
        struct rbug_proto_noop *ret;
 
        if (!header)
@@ -236,9 +233,6 @@ struct rbug_proto_noop * rbug_demarshal_noop(struct 
rbug_proto_header *header)
        if (header->opcode != (int32_t)RBUG_OP_NOOP)
                return NULL;
 
-       pos = 0;
-       len = header->length * 4;
-       data = (uint8_t*)&header[1];
        ret = MALLOC(sizeof(*ret));
        if (!ret)
                return NULL;
@@ -246,15 +240,11 @@ struct rbug_proto_noop * rbug_demarshal_noop(struct 
rbug_proto_header *header)
        ret->header.__message = header;
        ret->header.opcode = header->opcode;
 
-
        return ret;
 }
 
 struct rbug_proto_ping * rbug_demarshal_ping(struct rbug_proto_header *header)
 {
-       uint32_t len = 0;
-       uint32_t pos = 0;
-       uint8_t *data =  NULL;
        struct rbug_proto_ping *ret;
 
        if (!header)
@@ -262,9 +252,6 @@ struct rbug_proto_ping * rbug_demarshal_ping(struct 
rbug_proto_header *header)
        if (header->opcode != (int32_t)RBUG_OP_PING)
                return NULL;
 
-       pos = 0;
-       len = header->length * 4;
-       data = (uint8_t*)&header[1];
        ret = MALLOC(sizeof(*ret));
        if (!ret)
                return NULL;
@@ -272,7 +259,6 @@ struct rbug_proto_ping * rbug_demarshal_ping(struct 
rbug_proto_header *header)
        ret->header.__message = header;
        ret->header.opcode = header->opcode;
 
-
        return ret;
 }
 
diff --git a/src/gallium/auxiliary/rbug/rbug_texture.c 
b/src/gallium/auxiliary/rbug/rbug_texture.c
index 2ad5779..017c8d0 100644
--- a/src/gallium/auxiliary/rbug/rbug_texture.c
+++ b/src/gallium/auxiliary/rbug/rbug_texture.c
@@ -410,9 +410,6 @@ int rbug_send_texture_read_reply(struct rbug_connection 
*__con,
 
 struct rbug_proto_texture_list * rbug_demarshal_texture_list(struct 
rbug_proto_header *header)
 {
-       uint32_t len = 0;
-       uint32_t pos = 0;
-       uint8_t *data =  NULL;
        struct rbug_proto_texture_list *ret;
 
        if (!header)
@@ -420,9 +417,6 @@ struct rbug_proto_texture_list * 
rbug_demarshal_texture_list(struct rbug_proto_h
        if (header->opcode != (int32_t)RBUG_OP_TEXTURE_LIST)
                return NULL;
 
-       pos = 0;
-       len = header->length * 4;
-       data = (uint8_t*)&header[1];
        ret = MALLOC(sizeof(*ret));
        if (!ret)
                return NULL;
@@ -430,7 +424,6 @@ struct rbug_proto_texture_list * 
rbug_demarshal_texture_list(struct rbug_proto_h
        ret->header.__message = header;
        ret->header.opcode = header->opcode;
 
-
        return ret;
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to