From 15722159fca2f13bda8b45082ba81fbbb5bf6b33 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 28 May 2013 15:27:25 +0200 Subject: [PATCH] remove private isl_ast_expr_alloc_int which is no longer used Signed-off-by: Sven Verdoolaege --- isl_ast.c | 21 --------------------- isl_ast_private.h | 1 - 2 files changed, 22 deletions(-) diff --git a/isl_ast.c b/isl_ast.c index 0c24c5b..5885e41 100644 --- a/isl_ast.c +++ b/isl_ast.c @@ -394,27 +394,6 @@ __isl_give isl_ast_expr *isl_ast_expr_alloc_int_si(isl_ctx *ctx, int i) return expr; } -/* Create a new integer expression representing "i". - */ -__isl_give isl_ast_expr *isl_ast_expr_alloc_int(isl_ctx *ctx, isl_int i) -{ - isl_ast_expr *expr; - - expr = isl_calloc_type(ctx, isl_ast_expr); - if (!expr) - return NULL; - - expr->ctx = ctx; - isl_ctx_ref(ctx); - expr->ref = 1; - expr->type = isl_ast_expr_int; - expr->u.v = isl_val_int_from_isl_int(ctx, i); - if (!expr->u.v) - expr = isl_ast_expr_free(expr); - - return expr; -} - /* Create a new integer expression representing "v". */ __isl_give isl_ast_expr *isl_ast_expr_from_val(__isl_take isl_val *v) diff --git a/isl_ast_private.h b/isl_ast_private.h index ec2e339..c1bf334 100644 --- a/isl_ast_private.h +++ b/isl_ast_private.h @@ -34,7 +34,6 @@ struct isl_ast_expr { #include -__isl_give isl_ast_expr *isl_ast_expr_alloc_int(isl_ctx *ctx, isl_int i); __isl_give isl_ast_expr *isl_ast_expr_alloc_int_si(isl_ctx *ctx, int i); __isl_give isl_ast_expr *isl_ast_expr_alloc_op(isl_ctx *ctx, enum isl_ast_op_type op, int n_arg); -- 2.7.4