aboutsummaryrefslogtreecommitdiffstats
path: root/src/win_cairo.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-04-21 17:47:02 -0400
committerDavid Robillard <d@drobilla.net>2022-04-21 17:49:42 -0400
commit64e784e77b45cdbcd4ce17187c9fa4259b0ddefb (patch)
treeae219e56ef18693712ec3457019dcd5611519948 /src/win_cairo.c
parent7733df13ec32c169f4f8013bb1c3f55743d88c87 (diff)
downloadpugl-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/win_cairo.c')
-rw-r--r--src/win_cairo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/win_cairo.c b/src/win_cairo.c
index dce061d..ddc9554 100644
--- a/src/win_cairo.c
+++ b/src/win_cairo.c
@@ -1,4 +1,4 @@
-// Copyright 2012-2021 David Robillard <d@drobilla.net>
+// Copyright 2012-2022 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#include "stub.h"
@@ -89,7 +89,7 @@ puglWinCairoOpen(PuglView* view)
return PUGL_SUCCESS;
}
-static PuglStatus
+static void
puglWinCairoDestroy(PuglView* view)
{
PuglInternals* const impl = view->impl;
@@ -99,8 +99,6 @@ puglWinCairoDestroy(PuglView* view)
puglWinCairoDestroyDrawContext(view);
free(surface);
impl->surface = NULL;
-
- return PUGL_SUCCESS;
}
static PuglStatus