summaryrefslogtreecommitdiffhomepage
path: root/ast.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-10 16:34:12 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-10 16:35:13 +0200
commit39164c57d893b02f9a253c661abc2459bcd57e5c (patch)
tree7df7bb35122bc692818feb883726e5910b892101 /ast.c
parentd33d86fae9b72b352a335488e2e1401e3b0c66a1 (diff)
treewide: eliminate unused function arguments
Also introduce convenience macro for registering function arrays in modules. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ast.c b/ast.c
index 8f5abc0..cb6f438 100644
--- a/ast.c
+++ b/ast.c
@@ -174,7 +174,7 @@ obj_free(struct json_object *v, void *ud)
}
struct json_object *
-ut_new_object(struct ut_state *s, struct json_object *proto) {
+ut_new_object(struct json_object *proto) {
struct json_object *val = json_object_new_object();
struct ut_op *op;
@@ -228,7 +228,7 @@ func_to_string(struct json_object *v, struct printbuf *pb, int level, int flags)
}
struct json_object *
-ut_new_func(struct ut_state *s, struct ut_op *decl)
+ut_new_func(struct ut_op *decl)
{
struct json_object *val = json_object_new_object();
struct ut_op *op;
@@ -391,7 +391,7 @@ ut_extended_type_free(struct json_object *v, void *ud)
}
struct json_object *
-ut_set_extended_type(struct ut_state *s, struct json_object *v, struct json_object *proto, const char *name, void *data)
+ut_set_extended_type(struct json_object *v, struct json_object *proto, const char *name, void *data)
{
struct ut_extended_type *et = NULL;
struct ut_op *op;