Mesa (main): pvr: csbgen: Remove unused function parameters
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 09:22:02 UTC 2022
Module: Mesa
Branch: main
Commit: f2de3716d8bf0140c744d7d21c3ce807997ea232
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2de3716d8bf0140c744d7d21c3ce807997ea232
Author: Matt Coster <matt.coster at imgtec.com>
Date: Fri May 13 10:43:36 2022 +0100
pvr: csbgen: Remove unused function parameters
Signed-off-by: Matt Coster <matt.coster at imgtec.com>
Reviewed-by: Frank Binns <frank.binns at imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16884>
---
src/imagination/csbgen/gen_pack_header.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/imagination/csbgen/gen_pack_header.py b/src/imagination/csbgen/gen_pack_header.py
index da5526df12e..6058459bbd1 100644
--- a/src/imagination/csbgen/gen_pack_header.py
+++ b/src/imagination/csbgen/gen_pack_header.py
@@ -159,12 +159,12 @@ class Csbgen(Node):
})
for define in self._defines:
- define.emit(self)
+ define.emit()
print()
for enum in self._enums.values():
- enum.emit(self)
+ enum.emit()
for struct in self._structs.values():
struct.emit(self)
@@ -207,7 +207,7 @@ class Enum(Node):
self._values[element.name] = element
- def emit(self, root):
+ def emit(self):
# This check is invalid if tags other than Value can be nested within an enum.
if not self._values.values():
raise RuntimeError("Enum definition is empty. Enum: '%s'" % self.full_name)
@@ -313,14 +313,14 @@ class Struct(Node):
print(", \\\n".join(default_fields))
print("")
- def _emit_helper_macros(self, root):
+ def _emit_helper_macros(self):
fields_with_defines = filter(lambda f: f.defines, self.fields)
for field in fields_with_defines:
print("/* Helper macros for %s */" % field.name)
for define in field.defines:
- define.emit(root)
+ define.emit()
print()
@@ -346,7 +346,7 @@ class Struct(Node):
self._emit_header(root)
- self._emit_helper_macros(root)
+ self._emit_helper_macros()
print("struct %s {" % self.full_name)
for child in self._children.values():
@@ -461,7 +461,7 @@ class Define(Node):
self.parent.add(self)
- def emit(self, root):
+ def emit(self):
print("#define %-40s %d" % (self.full_name, self.value))
More information about the mesa-commit
mailing list