From 64e784e77b45cdbcd4ce17187c9fa4259b0ddefb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 21 Apr 2022 17:47:02 -0400 Subject: Remove unused return type from backend destroy methods Since this is essentially a destructor, I don't think there's anything really useful to do with errors here, and in practice no backends actually used it anyway. --- src/x11_cairo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/x11_cairo.c') diff --git a/src/x11_cairo.c b/src/x11_cairo.c index 107a4f3..6aafb50 100644 --- a/src/x11_cairo.c +++ b/src/x11_cairo.c @@ -1,4 +1,4 @@ -// Copyright 2012-2020 David Robillard +// Copyright 2012-2022 David Robillard // SPDX-License-Identifier: ISC #include "types.h" @@ -67,7 +67,7 @@ puglX11CairoCreate(PuglView* view) return PUGL_SUCCESS; } -static PuglStatus +static void puglX11CairoDestroy(PuglView* view) { PuglInternals* const impl = view->impl; @@ -75,8 +75,6 @@ puglX11CairoDestroy(PuglView* view) puglX11CairoClose(view); free(surface); - - return PUGL_SUCCESS; } static PuglStatus -- cgit v1.2.1