From 6148cce388f42739e06124b4c5c9d535e6fd1af8 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Sun, 9 Dec 2018 21:20:30 +0000 Subject: [PATCH] mapi: drop unneeded gl_dispatch_stub declarations These declarations are not used anywhere - be that generated code or otherwise. [Emil: format the hunk from Erik into a patch] Signed-off-by: Emil Velikov --- src/mapi/mapi_abi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mapi/mapi_abi.py b/src/mapi/mapi_abi.py index bb505561e7c..1ce3fd3f1e6 100644 --- a/src/mapi/mapi_abi.py +++ b/src/mapi/mapi_abi.py @@ -334,7 +334,8 @@ class ABIPrinter(object): if not self.need_entry_point(ent): continue export = self.api_call if not ent.hidden else '' - decls.append(self._c_decl(ent, prefix, True, export) + ';') + if not ent.hidden: + decls.append(self._c_decl(ent, prefix, True, export) + ';') return "\n".join(decls) -- 2.30.2