mapi: drop unneeded gl_dispatch_stub declarations
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Sun, 9 Dec 2018 21:20:30 +0000 (21:20 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 24 Jan 2019 18:13:24 +0000 (18:13 +0000)
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 <emil.velikov@collabora.com>
src/mapi/mapi_abi.py

index bb505561e7c53403aa2f502eab86353df52f4252..1ce3fd3f1e655b2526efb08ebd4e9b2d586c6e76 100644 (file)
@@ -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)