From 381a2587b67a21ada6bf3eb42c12d98c3a99af45 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 18 Aug 2008 11:14:44 -0400 Subject: [PATCH] Apparently we aren't using declared_attribute() now. --HG-- branch : trunk --- mojoshader.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index dfb12c36..67c4eb36 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -783,21 +783,6 @@ static inline int get_defined_register(Context *ctx, const RegisterType rtype, return (reglist_exists(&ctx->defined_registers, rtype, regnum) != NULL); } // get_defined_register -static const RegisterList *declared_attribute(Context *ctx, - const MOJOSHADER_usage usage, - const int index) -{ - const RegisterList *item = ctx->attributes.next; - while (item != NULL) - { - if ((item->usage == usage) && (item->index == index)) - return item; - item = item->next; - } // while - - return NULL; -} // declared_attribute - static void add_attribute_register(Context *ctx, const RegisterType rtype, const int regnum, const MOJOSHADER_usage usage, const int index, const int writemask, int flags)