shm: get_buffer(): remove 'copies' argument; it's not used

This commit is contained in:
Daniel Eklöf 2019-11-02 00:23:51 +01:00
parent 632b6ee0ea
commit 8df82938b0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 4 additions and 7 deletions

4
shm.c
View file

@ -31,10 +31,8 @@ static const struct wl_buffer_listener buffer_listener = {
};
struct buffer *
shm_get_buffer(struct wl_shm *shm, int width, int height, size_t copies)
shm_get_buffer(struct wl_shm *shm, int width, int height)
{
assert(copies >= 1);
tll_foreach(buffers, it) {
if (it->item.width != width || it->item.height != height)
continue;