aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac_stub.m
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/mac_stub.m
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/mac_stub.m')
-rw-r--r--src/mac_stub.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mac_stub.m b/src/mac_stub.m
index 3812479..a0d0322 100644
--- a/src/mac_stub.m
+++ b/src/mac_stub.m
@@ -1,4 +1,4 @@
-// Copyright 2019-2020 David Robillard <d@drobilla.net>
+// Copyright 2019-2022 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#include "implementation.h"
@@ -53,7 +53,7 @@ puglMacStubCreate(PuglView* view)
return PUGL_SUCCESS;
}
-static PuglStatus
+static void
puglMacStubDestroy(PuglView* view)
{
PuglStubView* const drawView = (PuglStubView*)view->impl->drawView;
@@ -62,7 +62,6 @@ puglMacStubDestroy(PuglView* view)
[drawView release];
view->impl->drawView = nil;
- return PUGL_SUCCESS;
}
const PuglBackend*