Apparently we aren't using declared_attribute() now. trunk
authorRyan C. Gordon <icculus@icculus.org>
Mon, 18 Aug 2008 11:14:44 -0400
branchtrunk
changeset 445 4bd3d8435e4d
parent 444 a243232171aa
child 446 217be2ec9419
Apparently we aren't using declared_attribute() now.
mojoshader.c
--- a/mojoshader.c	Mon Aug 18 11:14:23 2008 -0400
+++ b/mojoshader.c	Mon Aug 18 11:14:44 2008 -0400
@@ -783,21 +783,6 @@
     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)