diff options
author | David Robillard <d@drobilla.net> | 2022-04-21 17:47:02 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-04-21 17:49:42 -0400 |
commit | 64e784e77b45cdbcd4ce17187c9fa4259b0ddefb (patch) | |
tree | ae219e56ef18693712ec3457019dcd5611519948 /src/x11_cairo.c | |
parent | 7733df13ec32c169f4f8013bb1c3f55743d88c87 (diff) | |
download | pugl-64e784e77b45cdbcd4ce17187c9fa4259b0ddefb.tar.gz pugl-64e784e77b45cdbcd4ce17187c9fa4259b0ddefb.tar.bz2 pugl-64e784e77b45cdbcd4ce17187c9fa4259b0ddefb.zip |
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.
Diffstat (limited to 'src/x11_cairo.c')
-rw-r--r-- | src/x11_cairo.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 <d@drobilla.net> +// Copyright 2012-2022 David Robillard <d@drobilla.net> // 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 |