# SDL: Remove an unused function prototype

**URL:** <https://discourse.libsdl.org/t/sdl-remove-an-unused-function-prototype/35400>\
**Category:** SDL Commits\
**Created:** [April 20, 2022, 1:40pm UTC](https://discourse.libsdl.org/t/sdl-remove-an-unused-function-prototype/35400 "2022-04-20T13:40:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [April 20, 2022, 1:40pm UTC](https://discourse.libsdl.org/t/sdl-remove-an-unused-function-prototype/35400/1 "2022-04-20T13:40:08Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/aeadbdd788da18717076f39322de59fc420c006e>

```diff
From aeadbdd788da18717076f39322de59fc420c006e Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Wed, 20 Apr 2022 09:00:00 -0400
Subject: [PATCH] Remove an unused function prototype

---
 src/video/wayland/SDL_waylandwindow.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/video/wayland/SDL_waylandwindow.h b/src/video/wayland/SDL_waylandwindow.h
index 9ce68791927..b1ba98cf961 100644
--- a/src/video/wayland/SDL_waylandwindow.h
+++ b/src/video/wayland/SDL_waylandwindow.h
@@ -128,7 +128,6 @@ extern int Wayland_SetWindowModalFor(_THIS, SDL_Window * modal_window, SDL_Windo
 extern void Wayland_SetWindowTitle(_THIS, SDL_Window * window);
 extern void Wayland_DestroyWindow(_THIS, SDL_Window *window);
 extern void Wayland_SuspendScreenSaver(_THIS);
-extern int Wayland_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
 
 extern SDL_bool
 Wayland_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info);

```
