From: Erik Faye-Lund Date: Sun, 9 Dec 2018 21:20:30 +0000 (+0000) Subject: mapi: drop unneeded gl_dispatch_stub declarations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6148cce388f42739e06124b4c5c9d535e6fd1af8;p=mesa.git 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 --- 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)