summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-24 14:45:56 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-24 14:45:56 +0000
commit42ae0030696f027050c41babced2b408997bb0ce (patch)
tree9903989a555d359d87389bd87cd969a601ee907b
parent9fbfe6b65d7d45a70553b603f2166be3272d1e35 (diff)
tgsi: remove unnecessary full_token init and free functions
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_parse.c19
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_parse.h8
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 853485b48be..52c714ebbdf 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 c78d6e64fff..48e6987ab7d 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;