From 2f00ce0cf39f3b919f1fe4b4df40a848755184da Mon Sep 17 00:00:00 2001 From: BeWorld <36823759+BeWorld2018@users.noreply.github.com> Date: Wed, 28 Aug 2024 08:55:50 +0200 Subject: [PATCH] remove duplicate "platform->DestroyWindow" Duplicate code, not necessary --- src/harness/platforms/null.c | 1 - src/harness/platforms/sdl2.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/harness/platforms/null.c b/src/harness/platforms/null.c index db49f150..54cb8231 100644 --- a/src/harness/platforms/null.c +++ b/src/harness/platforms/null.c @@ -52,7 +52,6 @@ void Null_Platform_Init(tHarness_platform* platform) { platform->GetKeyboardState = null_get_keyboard_state; platform->GetMousePosition = null_get_mouse_position; platform->GetMouseButtons = null_get_mouse_buttons; - platform->DestroyWindow = null_destroy_window; platform->ShowErrorMessage = null_show_error_message; platform->Renderer_SetPalette = null_set_palette; diff --git a/src/harness/platforms/sdl2.c b/src/harness/platforms/sdl2.c index 6ba8ad8c..ed7aaf58 100644 --- a/src/harness/platforms/sdl2.c +++ b/src/harness/platforms/sdl2.c @@ -217,7 +217,6 @@ void Harness_Platform_Init(tHarness_platform* platform) { platform->GetKeyboardState = get_keyboard_state; platform->GetMousePosition = get_mouse_position; platform->GetMouseButtons = get_mouse_buttons; - platform->DestroyWindow = destroy_window; platform->ShowErrorMessage = show_error_message; platform->Renderer_SetPalette = set_palette; platform->Renderer_Present = present_screen;