mesa: Remove now unused _mesa_draw_attrib.
authorMathias Fröhlich <mathias.froehlich@web.de>
Tue, 11 Dec 2018 17:45:43 +0000 (18:45 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 14:28:37 +0000 (14:28 +0000)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/308>

src/mesa/main/arrayobj.h

index c5f01ac16137ce24e54cec917d1733e5ebdc1182..c7423f106ffa2f7f564fa15fc38bd12d70373d00 100644 (file)
@@ -331,21 +331,6 @@ _mesa_draw_edge_flag_array_enabled(const struct gl_context *ctx)
 }
 
 
-/**
- * Return the attrib for the given attribute.
- */
-static inline const struct gl_array_attributes*
-_mesa_draw_attrib(const struct gl_context *ctx, gl_vert_attrib attr)
-{
-   if (ctx->Array._DrawVAOEnabledAttribs & VERT_BIT(attr)) {
-      const struct gl_vertex_array_object *vao = ctx->Array._DrawVAO;
-      return _mesa_draw_array_attrib(vao, attr);
-   } else {
-      return _vbo_current_attrib(ctx, attr);
-   }
-}
-
-
 /*
  * API functions
  */