From 3d4b626a639abd846f65938052fbd2c9f9fdceed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 19 Nov 2010 20:46:07 +0000 Subject: [PATCH] Remove unused functions. --- glretrace.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/glretrace.py b/glretrace.py index 49a467a..5644e36 100644 --- a/glretrace.py +++ b/glretrace.py @@ -28,21 +28,6 @@ import base from glx import libgl -def is_arg_supported(arg_type): - if isinstance(arg_type, (base.Literal, base._String, base.Enum)): - return True - if isinstance(arg_type, (base.Alias, base.Flags)): - return is_arg_supported(arg_type.type) - return False - - -def is_function_supported(function): - for arg_type, arg_name in function.args: - if not is_arg_supported(arg_type): - return False - return True - - class ValueExtractor(base.Visitor): def visit_literal(self, type, lvalue, rvalue): @@ -94,8 +79,6 @@ if __name__ == '__main__': print '#include "trace_parser.hpp"' print - functions = filter(is_function_supported, libgl.functions) - for function in libgl.functions: retrace_function(function) -- 2.7.4