Mesa (master): tgsi: remove unnecessary full_token init and free functions
Keith Whitwell
keithw at kemper.freedesktop.org
Tue Dec 1 14:43:35 UTC 2009
Module: Mesa
Branch: master
Commit: 42ae0030696f027050c41babced2b408997bb0ce
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=42ae0030696f027050c41babced2b408997bb0ce
Author: Keith Whitwell <keithw at vmware.com>
Date: Tue Nov 24 14:45:56 2009 +0000
tgsi: remove unnecessary full_token init and free functions
---
src/gallium/auxiliary/tgsi/tgsi_parse.c | 19 -------------------
src/gallium/auxiliary/tgsi/tgsi_parse.h | 8 --------
2 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_parse.c b/src/gallium/auxiliary/tgsi/tgsi_parse.c
index 853485b..52c714e 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_parse.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_parse.c
@@ -30,19 +30,6 @@
#include "tgsi_parse.h"
#include "util/u_memory.h"
-void
-tgsi_full_token_init(
- union tgsi_full_token *full_token )
-{
- full_token->Token.Type = TGSI_TOKEN_TYPE_DECLARATION;
-}
-
-void
-tgsi_full_token_free(
- union tgsi_full_token *full_token )
-{
-}
-
unsigned
tgsi_parse_init(
struct tgsi_parse_context *ctx,
@@ -64,8 +51,6 @@ tgsi_parse_init(
ctx->Tokens = tokens;
ctx->Position = 1 + ctx->FullHeader.Header.HeaderSize;
- tgsi_full_token_init( &ctx->FullToken );
-
return TGSI_PARSE_OK;
}
@@ -73,7 +58,6 @@ void
tgsi_parse_free(
struct tgsi_parse_context *ctx )
{
- tgsi_full_token_free( &ctx->FullToken );
}
boolean
@@ -118,9 +102,6 @@ tgsi_parse_token(
struct tgsi_token token;
unsigned i;
- tgsi_full_token_free( &ctx->FullToken );
- tgsi_full_token_init( &ctx->FullToken );
-
next_token( ctx, &token );
switch( token.Type ) {
diff --git a/src/gallium/auxiliary/tgsi/tgsi_parse.h b/src/gallium/auxiliary/tgsi/tgsi_parse.h
index c78d6e6..48e6987 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_parse.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_parse.h
@@ -93,14 +93,6 @@ union tgsi_full_token
struct tgsi_full_instruction FullInstruction;
};
-void
-tgsi_full_token_init(
- union tgsi_full_token *full_token );
-
-void
-tgsi_full_token_free(
- union tgsi_full_token *full_token );
-
struct tgsi_parse_context
{
const struct tgsi_token *Tokens;
More information about the mesa-commit
mailing list