From e803e7718d6e4db9b0d76ec6b93f57c810952b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 11 Aug 2023 19:04:03 +0200 Subject: [PATCH] Remove unused _cogl_poll_renderer_modify_fd Unused since 865da1457a4c ("renderer: drop wayland client support"). Part-of: --- cogl/cogl/cogl-poll-private.h | 5 ----- cogl/cogl/cogl-poll.c | 19 ------------------- 2 files changed, 24 deletions(-) diff --git a/cogl/cogl/cogl-poll-private.h b/cogl/cogl/cogl-poll-private.h index 63b386099..2afba7a87 100644 --- a/cogl/cogl/cogl-poll-private.h +++ b/cogl/cogl/cogl-poll-private.h @@ -48,11 +48,6 @@ _cogl_poll_renderer_add_fd (CoglRenderer *renderer, CoglPollDispatchCallback dispatch, void *user_data); -void -_cogl_poll_renderer_modify_fd (CoglRenderer *renderer, - int fd, - CoglPollFDEvent events); - typedef struct _CoglPollSource CoglPollSource; CoglPollSource * diff --git a/cogl/cogl/cogl-poll.c b/cogl/cogl/cogl-poll.c index 2a424c2da..df954ba29 100644 --- a/cogl/cogl/cogl-poll.c +++ b/cogl/cogl/cogl-poll.c @@ -168,25 +168,6 @@ _cogl_poll_renderer_remove_fd (CoglRenderer *renderer, int fd) } } -void -_cogl_poll_renderer_modify_fd (CoglRenderer *renderer, - int fd, - CoglPollFDEvent events) -{ - int fd_index = find_pollfd (renderer, fd); - - if (fd_index == -1) - g_warn_if_reached (); - else - { - CoglPollFD *pollfd = - &g_array_index (renderer->poll_sources, CoglPollFD, fd_index); - - pollfd->events = events; - renderer->poll_fds_age++; - } -} - void _cogl_poll_renderer_add_fd (CoglRenderer *renderer, int fd,