gpu: Remove unused return value from function

Technically, an alloc() function should return what it allocated. But
the return value is never used.

Maybe we should rename the function?
This commit is contained in:
Benjamin Otte 2024-03-15 13:42:40 +01:00
parent 153b78e2bc
commit 975cdd8c30
2 changed files with 2 additions and 4 deletions

View File

@ -204,7 +204,7 @@ gsk_gpu_shader_op_gl_command (GskGpuOp *op,
return gsk_gpu_shader_op_gl_command_n (op, frame, state, 1);
}
GskGpuShaderOp *
void
gsk_gpu_shader_op_alloc (GskGpuFrame *frame,
const GskGpuShaderOpClass *op_class,
guint32 variation,
@ -225,7 +225,5 @@ gsk_gpu_shader_op_alloc (GskGpuFrame *frame,
self->vertex_offset = gsk_gpu_frame_reserve_vertex_data (frame, op_class->vertex_size);
*((gpointer *) out_vertex_data) = gsk_gpu_frame_get_vertex_data (frame, self->vertex_offset);
return self;
}

View File

@ -32,7 +32,7 @@ struct _GskGpuShaderOpClass
void (* setup_vao) (gsize offset);
};
GskGpuShaderOp * gsk_gpu_shader_op_alloc (GskGpuFrame *frame,
void gsk_gpu_shader_op_alloc (GskGpuFrame *frame,
const GskGpuShaderOpClass *op_class,
guint32 variation,
GskGpuShaderClip clip,