From 8df82938b0549d0c5820ce258f0097a0370e75ea Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 2 Nov 2019 00:23:51 +0100 Subject: shm: get_buffer(): remove 'copies' argument; it's not used --- shm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'shm.c') diff --git a/shm.c b/shm.c index 1b2c9d7c..fd962698 100644 --- a/shm.c +++ b/shm.c @@ -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; -- cgit v1.3