mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 17:50:10 +00:00
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:
parent
153b78e2bc
commit
975cdd8c30
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user